Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

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

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.

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

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.63763 sec.)

We're Hiring!