Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: filter test execution by test plan case IDs #155

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Conversation

gibiw
Copy link
Contributor

@gibiw gibiw commented Nov 25, 2024

This pull request includes a version update for the qase-java project to 4.0.4 and introduces new functionality for the Junit5 reporter. The most important changes include the addition of support for running tests included in a test plan for Junit5, updates to the pom.xml files to reflect the new version, and an upgrade of the junit-platform-engine dependency.

New functionality:

  • Implemented support for running only the tests included in a test plan for the Junit5 reporter. This feature can be enabled by specifying the test plan ID in the reporter configuration, either in the qase.config.json file or through the QASE_TESTOPS_PLAN_ID environment variable. (changelog.md: [1] qase-junit5-reporter/src/main/java/io/qase/junit5/Junit5PostDiscoveryFilter.java: [2] qase-junit5-reporter/src/main/resources/META-INF/services/org.junit.platform.launcher.PostDiscoveryFilter: [3]

Version updates:

  • Updated the project version to 4.0.4 in the main pom.xml file and all module-specific pom.xml files. (pom.xml: [1] qase-api-client/pom.xml: [2] qase-api-v2-client/pom.xml: [3] qase-cucumber-v3-reporter/pom.xml: [4] qase-cucumber-v4-reporter/pom.xml: [5] qase-cucumber-v5-reporter/pom.xml: [6] qase-cucumber-v6-reporter/pom.xml: [7] qase-cucumber-v7-reporter/pom.xml: [8] qase-java-commons/pom.xml: [9] qase-junit4-reporter/pom.xml: [10] qase-junit5-reporter/pom.xml: [11] qase-testng-reporter/pom.xml: [12]

Dependency update:

  • Upgraded junit-platform-engine dependency from version 1.6.2 to 1.9.0. (pom.xml: pom.xmlL38-R38)

Enhanced functionality to execute only the test methods specified in a test plan.

### Details:
- **Filter logic**: Test methods are filtered based on matching case IDs from the test plan.
- **Fallback behavior**: If no case IDs are defined, all test methods are executed as usual.
- **Configuration**: Case IDs are sourced via the `QASE_TESTOPS_PLAN_ID` environment variable or `qase.config.json`.
@gibiw gibiw merged commit e82985f into main Nov 25, 2024
4 checks passed
@gibiw gibiw deleted the feat/junit5 branch November 25, 2024 12:59
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.

1 participant