xtf-cz / xtf

MIT License
12 stars 55 forks source link

Skip builds also for disabled test classes #505

Closed jbliznak closed 2 years ago

jbliznak commented 2 years ago

Before this PR, when class is annotated with @SkipFor or @SinceVersion and these annotations result in test class being skipped, we also skip pre-building of configured builds for that class (introduced in https://github.com/xtf-cz/xtf/pull/277).

This PR extends the check to also skip the build when test class is annotated with JUnit @Disabled annotation which further optimizes the execution.

Also some tests were added to verify the previous and enhanced behaviour.