forked from scudco/taza
-
Notifications
You must be signed in to change notification settings - Fork 19
Writing Tests
angupta edited this page Sep 13, 2010
·
5 revisions
Taza was written with multiple Sites in mind. This means that Taza provides conventions for three types of testing.
- Functional Testing – Tests one site, possibly in isolation from other Sites
- Integration Testing – Tests interactions between multiple sites in fully integrated environments
- Story Testing – Story/Feature testing (think Cucumber)
Because this terminology can be contentious it is important to understand how each of these types of testing relates to Sites. Taza provides generators for Functional Testing at the moment. Generators for Integration Testing and Story Testing are planned and coming soon. I’m super serious.
Here’s an example of Taza’s spec folder
spec/
|-- isolation
|-- integration
|-- spec_helper.rb
`-- story
And after you generate a Site and Page by running
$ ./script/generate site google
$ ./script/generate page home google
The spec folder will look like
spec/
|-- isolation
| `-- google
| `-- home_page_spec.rb
|-- integration
|-- spec_helper.rb
`-- story