-
Notifications
You must be signed in to change notification settings - Fork 37
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
consider switching to compass run
instead of ./run.py
#71
Comments
How are you imagining Maybe it would be more explicit to run |
This has been implemented and tested here:
That's always a plus! |
Yes, you run in the work directory. Currently, there's no way to run all the test cases in a test group, though that's an interesting idea! But for test cases and steps, it just recognizes the
without any further arguments. Since multiple suites can be run from the same directory, you have to be in the root of the work directory and then give the name of a suite to run:
Yeah, that would be an option but I sure like not having to worry about that with the current |
This work has the added benefit of letting the |
@xylar , wow that was surprisingly quick to implement! The way you've implemented it makes sense to me, and I agree it is cleaner to not have to reference the pickle files (which are meant to be ignored by users) - you convinced me that there is not ambiguity about what compass should be running when invoked from various locations. I also like the reduction in complexity that comes with fewer lines of code, eliminating the jinja templates, eliminating auto-generated scripts, and reducing a few packages to modules. I'll keep these proposed changes in mind as I finish reviewing the v1 PR. |
@matthewhoffman came up with a great suggestion of no longer generating the
./run.py
scripts (which can't usefully be edited to make changes to the test case or step anyway) and instead going with a commandcompass run
that runs a suite, test case or step.The main consideration is how the information unique to the suite, test case or step that is currently in
run.py
gets stored and retrieved. Presumably, the pickle files for test case and steps could be given more generic names and thencompass
could recognize whether a directory is a test case or a step by whether there's atest_case.pickle
orstep.pickle
.Test suites are a little more complicated because several suites can get set up in the same directory. In that case, it probably makes sense to have a pickle file for each suite and call
compass run <suite>
, where<suite>
is the (hopefully unique) name of the suite.The text was updated successfully, but these errors were encountered: