slothg / flexcover

Automatically exported from code.google.com/p/flexcover
0 stars 0 forks source link

Request: allow filter specification on CoverageViewer command line #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Suppose I have a SWC with the following packages:

com.yoyodyne.controls
com.yoyodyne.controls.backwardsTextInput
com.yoyodyne.controls.randomDataGrid
com.yoyodyne.controls.upsideDownComboBox
com.yoyodyne.util
com.yoyodyne.util.number
com.yoyodyne.util.string

I write a bunch of different test suites:

UtilTests
BackwardsTextInputTests
RandomDataGridTests
UpsideDownComboBoxTests
AllControlTests

When I run UtilTests, I'd like CoverageViewer to filter 
on "com.yoyodyne.util".  When I run RandomDataGridTests, I'd like to 
filter on "com.yoyodyne.controls.randomDataGridTests".  And so on.

This will be particularly important when I run my automated tests - I'd 
like to generate a separate .cvr for each test suite, with the .cvr 
already filtered appropriately (i.e. only containing those things that 
match the filter).

To do this, I'd like to be able to specify filters on the CoverageViewer 
command line.  The exact syntax doesn't matter, but one idea might be:

When just running UtilTests:
CoverageViewer mySWC.cvm -output utils.cvr -filter "com.yoyodyne.util"

When running BackwardsTextInputTests and RandomDataGridTests together:
CoverageViewer mySWC.cvm -output someControls.cvr -
filter "com.yoyodyne.controls.randomDataGrid,com.yoyodyne.controls.backward
sTextInput"

My company is very test-driven and the non-Flex groups have nightly test 
results posted to an internal web site; if we had this, we could post-
process the .cvr file to HTML and produce the same thing.  That would make 
our systems/build folks *very* happy.

Original issue reported on code.google.com by RobSFreundlich@gmail.com on 13 Mar 2009 at 2:29