-
Suggestion
-
Resolution: Won't Fix
-
None
Implement test optimization for Groovy code for Clover-for-Ant and Clover-for-Maven2 plugins. Currently it always runs all tests.
Tricky part in Ant:
1) Ant <junit><batchtest> batchtest collects the included resources from any number of nested Resource Collections. It then generates a test class name for each resource that ends in .java or .class. It means that *.groovy files will be ignored. However, we could use *.class files, for example:
<fileset dir="${build.dir}"> <include name="**/*Test.class"/> </fileset>
Then we can run both groovy and java unit tests from Ant.
2) But then if we try to use *.class inclusion pattern with <clover-optimized-testset>, for instance:
<clover-optimized-testset> <fileset dir="${build.dir}"> <include name="**/*Test.class"/> </fileset> </clover-optimized-testset>
then Clover (BaseCloverOptimizedTestSelector + BaseCloverOptimizedType) will try to "guess" source file name by renaming Foo.class to Foo.java. As a consequence it is unable to find Foo.groovy file...
Tricky part in Maven:
t.b.d.
Tricky part with TestSuites:
Known problem. Clover does not optimize TestSuites. Thus user cannot use any tests suites. It means that also Groovy "AllTestSuite" runner cannot be used for test launching.
- mentioned in
-
Page Failed to load
[CLOV-1152] Implement test optimization for Groovy
Workflow | Original: JAC Suggestion Workflow [ 3342218 ] | New: JAC Suggestion Workflow 3 [ 3584726 ] |
Status | Original: RESOLVED [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: New Clover Workflow [ 898160 ] | New: JAC Suggestion Workflow [ 3342218 ] |
Issue Type | Original: Improvement [ 4 ] | New: Suggestion [ 10000 ] |
Status | Original: Closed [ 6 ] | New: Resolved [ 5 ] |
Resolution | New: Won't Fix [ 2 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Assignee | Original: Marek Parfianowicz [ mparfianowicz ] |
Workflow | Original: Clover Workflow [ 896487 ] | New: New Clover Workflow [ 898160 ] |
Workflow | Original: reviewflow [ 413467 ] | New: Clover Workflow [ 896487 ] |
Fix Version/s | New: long term roadmap [ 54394 ] | |
Fix Version/s | Original: 4.2.x [ 26216 ] |
Rank | New: Ranked higher |
Remote Link | Original: This issue links to "Page (Extranet)" [ 71308 ] | New: This issue links to "Page (Extranet)" [ 71308 ] |
Remote Link | Original: This issue links to "Page (Extranet)" [ 71308 ] | New: This issue links to "Page (Extranet)" [ 71308 ] |