Cannot use dry-run subunit output as list tests.

Bug #1027045 reported by Jonathan Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Testrepository
Triaged
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.

Revision history for this message
Jonathan Lange (jml) wrote :

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

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 1027045] Re: Cannot use dry-run subunit output as list tests.

Makes sense to me.

Changed in testrepository:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
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 :<

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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