Cannot use dry-run subunit output as list tests.

Reported by Jonathan Lange on 2012-07-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Testrepository
Wishlist
Unassigned

Bug Description

I want to write a .testr.conf file that uses trial to run tests. Currently, trial has no option to just list tests. However, it does have a subunit output format and a dry-run facility.

I want to be able to configure .testr.conf to say something like:
  test_list_command=trial --reporter=subunit --dry-run twisted | subunit-ls

(I think maybe 'twisted' should be $IDLIST there. It's hard to say.)

Or to be able to somehow say that the list will be provided as a subunit stream.

Jonathan Lange (jml) wrote :

See also http://twistedmatrix.com/trac/ticket/5796, which tackles this problem from the other side.

Changed in testrepository:
status: New → Triaged
importance: Undecided → Wishlist
Robert Collins (lifeless) wrote :

[DEFAULT]
test_command=trial --reporter=subunit testrepository $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--dry-run | subunit-ls

should work, but trial doesn't honour --dry-run at the end :<

Robert Collins (lifeless) wrote :

So there are two routes we could go here:
 - have a complete replacement command for listing
 - have post-processing filters for listing (including e.g. passing it through subunit).

The most expedient thing is to just always run it through subunit.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.