Skip to content

Add rake spec:units and rake spec:functionals#26

Closed
clayallsopp wants to merge 1 commit intoHipByte:masterfrom
clayallsopp:spec_types
Closed

Add rake spec:units and rake spec:functionals#26
clayallsopp wants to merge 1 commit intoHipByte:masterfrom
clayallsopp:spec_types

Conversation

@clayallsopp
Copy link
Contributor

Running the functional tests and unit tests together is kind of a pain since functionals usually take much longer (animations have to complete, etc).

These could be set on a project-by-project basis but I thought it'd be nice to have a sensible default. Took the nomenclature from Rails-land.

By default, these will run the tests in "#{app.specs_dir}/unit" and "#{app.specs_dir}/functional", but those can be overridden by setting app.unit_specs_dir and app.functional_specs_dir. rake spec functions like normal.

By default, these will run the tests in "#{app.specs_dir}/unit"
and "#{app.specs_dir}/functional", but those can be overridden
by setting app.unit_specs_dir and app.functional_specs_dir
@colinta
Copy link
Member

colinta commented Jun 26, 2013

These are very specific filters, and while useful, I thought it made more sense to support any folder. I propose this: #101, which adds the ability to filter by folder using the ENV['files'] setting.

@clayallsopp
Copy link
Contributor Author

lol "11 months ago". yeah that's better, cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants