Skip to content

Skip utPLSQL tests with -DskipTests and -Dmaven.test.skip - #83

Merged
jgebal merged 1 commit into
developfrom
feature/skipTests
Sep 27, 2026
Merged

jgebal merged 1 commit into
developfrom
feature/skipTests

Conversation

@jgebal

@jgebal jgebal commented Sep 27, 2026

Copy link
Copy Markdown
Member

Closes #67.

Summary

The plugin now follows Maven's standard test-skipping flags. mvn install -DskipTests or -Dmaven.test.skip=true skips the utPLSQL tests along with the Java tests, the same way Surefire and Failsafe behave. Before, only the plugin's own skipUtplsqlTests skipped them.

skipUtplsqlTests still exists and takes precedence, so the utPLSQL tests can be skipped or run independently:

Command Java tests (Surefire) utPLSQL tests
mvn install run run
mvn install -DskipTests skipped skipped (new)
mvn install -Dmaven.test.skip=true skipped skipped (new)
mvn install -DskipUtplsqlTests=true run skipped
mvn install -DskipTests -DskipUtplsqlTests=false skipped run

Behaviour change

Builds that run -DskipTests to skip only the Java tests will now skip the utPLSQL tests too. To keep the old behaviour, add -DskipUtplsqlTests=false.

Setups that already use skipUtplsqlTests=true or false, whether in the pom or on the command line, behave exactly as before.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

52 tests  +7   52 ✅ +7   51s ⏱️ -1s
 4 suites ±0    0 💤 ±0 
 4 files   ±0    0 ❌ ±0 

Results for commit ce3b619. ± Comparison against base commit 2965094.

@jgebal
jgebal merged commit d99cc23 into develop Sep 27, 2026
4 checks passed
@jgebal
jgebal deleted the feature/skipTests branch September 27, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skipTests should also skip the utPLSQL tests

1 participant