Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zeus test doesn't run Test::Unit tests when project uses rspec as well #148

Closed
arturopie opened this issue Oct 31, 2012 · 2 comments
Closed

Comments

@arturopie
Copy link
Contributor

When Test::Unit and Rspec are used in the same project, zeus test will always use Rspec to run any test. For example:

zeus test test/unit/user_test.rb

will always use rspec to run this file, and therefore, no example will be found.

I know how to fix this issue and will do a pull request soon.

arturopie pushed a commit to arturopie/zeus that referenced this issue Oct 31, 2012
In order to run other ruby test frameworks like Test::Unit in a project
that defines Rspec (because it uses both test frameworks), we check if
the file match /.+_spec\.rb$/. If it doesn't, then we use Zeus::M to run
the file.
burke added a commit that referenced this issue Nov 24, 2012
…unit_files

#148: zeus test uses rspec only if we are running a spec file
@burke
Copy link
Owner

burke commented Dec 4, 2012

Closing for now, but I'd like to revisit this at some point in the future and make zeus do the actual right thing, whatever that is. Thank you for the stopgap fix though :)

@burke burke closed this as completed Dec 4, 2012
@arturopie
Copy link
Contributor Author

Your welcome. A work around is to use different environments and commands for running rspec and Test::Unit.

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

No branches or pull requests

2 participants