https://github.com/mageddo/maven-unit-integrated-tests
Simple project to a example of how to separate unit and integration tests
https://github.com/mageddo/maven-unit-integrated-tests
Last synced: 11 months ago
JSON representation
Simple project to a example of how to separate unit and integration tests
- Host: GitHub
- URL: https://github.com/mageddo/maven-unit-integrated-tests
- Owner: mageddo
- Created: 2015-07-03T03:18:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-03T03:18:42.000Z (almost 11 years ago)
- Last Synced: 2025-06-02T02:19:33.388Z (about 1 year ago)
- Language: Java
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## introduction
This example project show how run unit and integration tests together and separately
1. Installing the application with tests only
mvn clean install
2. Running tests only
mvn test
3. Installing the application with tests and integration tests
mvn clean install -Pintegration-test
4. Running integration tests
mvn integration-test -Pintegration-test
## Observation
When run a `integration-test`, `maven` is required to run `test` too, because `test` is a condition to `integration-test` works.
## Activate integration tests by default
You can active integration-test to run by default in `maven clean install`, to do it you have to set
`activeByDefault` as `true` in maven `integration-tests` profile, as follows
```xml
...
integration-test
true
....
```