CSC/ECE 517 Fall 2012/ch2a 2w33 pv: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


=Fixtures=
=Fixtures=
Fixtures are sample data on which all the tests run. There can be 3 types of fixtures[]:
Fixtures are sample data on which all the tests run. There can be 3 types of fixtures<ref>http://ar.rubyonrails.org/classes/Fixtures.html</ref>:
  1. YAML fixtures
1. YAML fixtures
  2. CSV fixtures
2. CSV fixtures
  3. Single-file fixtures
3. Single-file fixtures


==YAML Fixtures==
==YAML Fixtures==
YAML is a recursive acronym for "YAML Ain't Markup Language. <ref>http://ar.rubyonrails.org/classes/Fixtures.html</ref>
YAML is a recursive acronym for "YAML Ain't Markup Language".<ref>http://en.wikipedia.org/wiki/YAML</ref> YAML is a file format which describes data structures in a non-verbose, human-readable format.


==CSV fixtures==
==CSV fixtures==

Revision as of 05:36, 23 October 2012

SaaS - 5.5 - Fixtures and Factories

Introduction to Testing

Fixtures

Fixtures are sample data on which all the tests run. There can be 3 types of fixtures<ref>http://ar.rubyonrails.org/classes/Fixtures.html</ref>:

1. YAML fixtures
2. CSV fixtures
3. Single-file fixtures

YAML Fixtures

YAML is a recursive acronym for "YAML Ain't Markup Language".<ref>http://en.wikipedia.org/wiki/YAML</ref> YAML is a file format which describes data structures in a non-verbose, human-readable format.

CSV fixtures

Single-file fixtures

Factories

Also see

References

<references />