CSC/ECE 517 Spring 2013/using fixtures with expertiza: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Using Fixtures with Expertiza What is a Fixture? How do fixtures compare to other test tools? When is it appropriate to use fixtures? How to use fixtures in Expertiza. YAML langu...") |
No edit summary |
||
| Line 1: | Line 1: | ||
Using Fixtures with Expertiza | Using Fixtures with Expertiza | ||
What is a Fixture? | What is a Fixture? | ||
How do fixtures compare to other test tools? | How do fixtures compare to other test tools? | ||
When is it appropriate to use fixtures? | When is it appropriate to use fixtures? | ||
How to use fixtures in Expertiza. | How to use fixtures in Expertiza. | ||
YAML language | YAML language | ||
YAML originally stood for “Yet Another Markup Language,” the authors now claim that it stands for “YAML Ain’t Markup Language.” | YAML originally stood for “Yet Another Markup Language,” the authors now claim that it stands for “YAML Ain’t Markup Language.” | ||
The YAML specification can be found here. [link] | The YAML specification can be found here. [link] | ||
Basic YAML rules. | Basic YAML rules. | ||
A pound / hash sign (‘#’) is used to begin a comment line. | A pound / hash sign (‘#’) is used to begin a comment line. | ||
Only spaces, never tabs, may be used to indent YAML files. While this may seem annoying, it’s done to ensure compatibility between different environments which treat tabs in different ways. | Only spaces, never tabs, may be used to indent YAML files. While this may seem annoying, it’s done to ensure compatibility between different environments which treat tabs in different ways. | ||
An ActiveRecord object is defined with YAML in the following manner: | An ActiveRecord object is defined with YAML in the following manner: | ||
objectName: | objectName: | ||
Revision as of 20:00, 5 May 2013
Using Fixtures with Expertiza
What is a Fixture?
How do fixtures compare to other test tools?
When is it appropriate to use fixtures?
How to use fixtures in Expertiza.
YAML language
YAML originally stood for “Yet Another Markup Language,” the authors now claim that it stands for “YAML Ain’t Markup Language.” The YAML specification can be found here. [link]
Basic YAML rules.
A pound / hash sign (‘#’) is used to begin a comment line. Only spaces, never tabs, may be used to indent YAML files. While this may seem annoying, it’s done to ensure compatibility between different environments which treat tabs in different ways.
An ActiveRecord object is defined with YAML in the following manner: objectName:
Attribute1: value Attribute2: value
…
Attributen: value