X Tutup
Skip to content

Move slow tests to integration test phase, enable tests by default#79

Merged
marcuslinke merged 2 commits intodocker-java:masterfrom
albers:integration-tests
Oct 21, 2014
Merged

Move slow tests to integration test phase, enable tests by default#79
marcuslinke merged 2 commits intodocker-java:masterfrom
albers:integration-tests

Conversation

@albers
Copy link
Copy Markdown
Contributor

@albers albers commented Oct 20, 2014

Use TestNG's test groups feature to distinguish between fast, self contained unit tests and slow integration tests that access external services (groups="integration").
Move the latter ones to the integration test phase and disable them by default.

Personally, I'd prefer to have all tests enabled by default and point out to the option that you can disable the integration tests with -DskipITs if you cannot fulfil the build requirements. If you agree, I'd like to amend this PR.

Use TestNG's test groups feature to distinguish between fast, self
contained unit tests and slow integration tests that access external
services.
Move the latter ones to the integration test phase and disable them by
default.
@marcuslinke
Copy link
Copy Markdown
Contributor

@albers That makes sense. Please amend you PR with the appropriate changes. Thanks!

This changes the build to a more standard Maven way.
@albers
Copy link
Copy Markdown
Contributor Author

albers commented Oct 20, 2014

done.

@albers albers changed the title Allow fast tests to execute during standard build Move slow tests to integration test phase, enable tests by default Oct 20, 2014
@albers
Copy link
Copy Markdown
Contributor Author

albers commented Oct 21, 2014

@marcuslinke done.

marcuslinke added a commit that referenced this pull request Oct 21, 2014
Move slow tests to integration test phase, enable tests by default
@marcuslinke marcuslinke merged commit 1301d5e into docker-java:master Oct 21, 2014
@marcuslinke
Copy link
Copy Markdown
Contributor

@albers Thanks!

@albers albers deleted the integration-tests branch October 21, 2014 15:25
@marcuslinke marcuslinke mentioned this pull request Oct 25, 2014
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.

2 participants

X Tutup