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

Include ability to execute specs file from the command line #258

Closed
tddmonkey opened this issue May 1, 2014 · 6 comments
Closed

Include ability to execute specs file from the command line #258

tddmonkey opened this issue May 1, 2014 · 6 comments

Comments

@tddmonkey
Copy link

Previous version of Specs2 include the org.specs.files object that could be used to launch the running of all tests from the command line. This has disappeared in later versions- could we have it back as we rely on it for launching our tests from gradle

@etorreborre
Copy link
Owner

That was a mistake, this file is back in 2.3.11.

@tddmonkey
Copy link
Author

Am I being blind? I can't seem to find it in 2.3.11

@etorreborre
Copy link
Owner

Weird, it's in the code, but apparently not in the jar.

@etorreborre etorreborre reopened this May 1, 2014
@etorreborre
Copy link
Owner

Ok, I am blind. I put this code in the test directory :-(.

@etorreborre
Copy link
Owner

In the meantime you can add this definition to your project:

object files extends org.specs2.runner.FilesRunner

@tddmonkey
Copy link
Author

Thanks - I've been doing that so far but the copy+paste has been making me shudder!

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