Task #11470 (closed)
Opened 11 years ago
Closed 11 years ago
Individual python test execution doesn't work
Reported by: | mtbcarroll | Owned by: | cblackburn |
---|---|---|---|
Priority: | minor | Milestone: | Testing2 |
Component: | Documentation | Version: | 4.4.8 |
Keywords: | n.a. | Cc: | python-team@…, hflynn |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description (last modified by mtbcarroll)
For instance, from the example from http://www.openmicroscopy.org/site/support/omero4-staging/developers/testing.html,
./build.py -f components/tools/OmeroPy/build.xml test -DTEST=test.t_permissions
gives,
ERROR: file not found: test.t_permissions
I also tried some variants of it. I don't know if the ant build is broken or the documentation.
Change History (5)
comment:1 Changed 11 years ago by mtbcarroll
- Description modified (diff)
comment:2 Changed 11 years ago by jamoore
- Owner changed from jamoore to cblackburn
comment:3 Changed 11 years ago by mtbcarroll
I wonder if it's still possible to specify a particular class in the file.
comment:4 Changed 11 years ago by jamoore
Not via a single -DTEST variable unless we start parsing it via <arg line= which gets into weird whitespace issues. I think We would need to add -k handling to ant as well.
comment:5 Changed 11 years ago by cblackburn
- Resolution set to duplicate
- Status changed from new to closed
As Josh points out this is a documentation issue. There is a existing ticket covering the updating of the docs: http://trac.openmicroscopy.org.uk/ome/ticket/11423
I would think -DTEST=test/unit/test_permissions.py" would work since ${TEST} now points to the file to be executed, i.e. the last argument to ./setup.py test -s ${TEST}`.
There's likely a need to update the docs.