Skip to content

Split up unit tests and integration tests in main module #122

@ascopes

Description

@ascopes

In the java-compiler-testing Maven module:

  • Use the JUnit Platform Suite API to define runners with selectors for unit tests and integration tests.
  • Instruct maven-surefire-plugin to only run the unit test suite.
  • Include maven-failsafe-plugin in parent POM plugin management, and add to java-compiler-testing module.
  • Configure failsafe to only run the integration test suite in the java-compiler-testing module.
  • Configure JaCoCo to attach an agent to failsafe for integration tests.
  • Configure JaCoCo to merge coverage reports for unit and integration tests.
  • Ensure codecov in CI still picks up the same coverage.

Edit: looks like codecov has a nifty feature flag option we can use to help get coverage on unit tests and integration tests in PRs:

https://docs.codecov.com/docs/flags

Metadata

Metadata

Assignees

Labels

ciChanges to CI workflowsgood first issuegood first issue for contributorsmavenChanges within Maven manifeststestingImprovements to test packs

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions