MINOR: Exclude '**/*Suite.class' from test, unitTest and integrationTest#8381
MINOR: Exclude '**/*Suite.class' from test, unitTest and integrationTest#8381ijuma merged 2 commits intoapache:trunkfrom
Conversation
|
@ijuma FYI |
|
Good catch, we should do the same for the |
It was addressed by #5527 (the rule is added to streams module only since the Suite.class is used by streams module only) PR |
|
I think we should do it consistently at the top level |
done |
207f791 to
3db50fd
Compare
@vvcephei Suggested to add them and I think they are useful if one works on a specific feature (like I agree that we should not run the test twice in the build though. |
|
Ah, my mistake with the incorrect scoping. Thanks for the fix. FWIW, I do find that putting together a Suite is very useful while doing feature development, but having the suites checked in is less useful. Coming back to features I’ve made suites for, I’ve often had to add or remove tests from the suites to cover the logic I’m currently working on. Now, I’m wondering if we should just delete the Suite files and not allow them to be checked in, but only use them for local dev. |
|
@vvcephei I would agree, but I'll merge this PR as is since it solves the issue and doesn't cause harm even if we remove the |
|
|
|
retest this please |
The tasks
unitTestandintegrationTestused to run tests don't exclude the**/*Suiteso the tests included by Suite class are executed two times. For example:Committer Checklist (excluded from commit message)