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
Pytest target #1493
Pytest target #1493
Conversation
@joshmoore If you think this PR fixes http://trac.openmicroscopy.org.uk/ome/ticket/11431, could the ticket be closed? If there is any more work needed, I'm happy to contribute - please add to the ticket. Thanks. |
Agreed. Closed the ticket. A looming question: how do we select unit tests? /cc @ximenesuk |
The simplest way would be to include unit tests in a specific directory under |
Testing this:
results in the following usage message
the tests then proceed to run.
both run the tests without the usage message. I've not yet run any integration tests to conclusion to confirm whether a junitxml file is produced in ether case. |
OmeroFS and all other python-based tools components will need the PyTest class as a command in their setup.py.
With the latest two commits, most of this is fixed. However, Move unit tests
Refactoring PyTest
|
Moved final test setups to PyTest. Only remaining files that won't be run by PyTest are:
Of these, only |
With the last commit, unit tests are now run properly by build.py. Both with and without
|
Unless there's something very grievous here, I'm assuming that's it for me. Happy to have this merged and then pass off to @ximenesuk for either fixing or marking the failing unit tests. |
Note: I also didn't move around the OmeroFS test files which will need to be done to not have them missed by |
I noticed in testing this that:
seemed to also run the tests under |
That's always been my preference so that the complete suite on integration. Open to suggestions. |
I assume you mean, "... so that the complete suite is run on integration." If so that's fine. I just found the name a little confusing. I guess I would have expected something like |
Agreed. (Along with the naming of the junit results file discussed today with @bpindelski) |
Jabber-based 👍 from @ximenesuk |
--rebased-to #1524 |
Enable all pytests (
OmeroPy/test
) including gatewaytests via the "integration" target. This means all of the following should now run Python: