Skip to content

Add isolated test group and profile for tests requiring their own JVM.#515

Merged
tolbertam merged 1 commit into
2.0from
isolatedTestGroup
Nov 13, 2015
Merged

Add isolated test group and profile for tests requiring their own JVM.#515
tolbertam merged 1 commit into
2.0from
isolatedTestGroup

Conversation

@tolbertam

Copy link
Copy Markdown
Contributor

This is useful for tests that touch static members or require a 'clean' environment.

Applied to currently failing SSL tests that rely on SSLContext.getDefault which depends on System properties and is only ever loaded once.

Also configure failure parameters such that OSGi integration tests may run despite any test failures.

@tolbertam tolbertam changed the title Add isolated test group and profile for tests requiring their own JVM. [wip] Add isolated test group and profile for tests requiring their own JVM. Nov 7, 2015
@tolbertam

Copy link
Copy Markdown
Contributor Author

Waiting to see if this works well in CI before removing wip tag.

@tolbertam tolbertam changed the title [wip] Add isolated test group and profile for tests requiring their own JVM. Add isolated test group and profile for tests requiring their own JVM. Nov 7, 2015
Comment thread build.yaml

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only reasons I have 'failIfNoTests' and 'maven.test.failure.ignore' present here is so the build can continue and run other tests. For example, if the 'driver-core' build fails tests, the artifacts aren't created and thus integration tests fail. We'd normally not want to use these flags for build/releases but for the intent of CI testing it works.

@tolbertam

Copy link
Copy Markdown
Contributor Author

This seems to be working good, think it's good to go unless any reservations on the approach.

Comment thread build.yaml Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is recommended to invoke the verify phase instead, like in clean verify --fail-never -Plong

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, so that'd run both test and integration-test phase (as well as any other checks?). I'll give that a try, thanks!

@adutra

adutra commented Nov 9, 2015

Copy link
Copy Markdown
Contributor

👍

This is useful for tests that touch static members or require a
'clean' environment.

Applied to SSL tests that rely on SSLContext.getDefault which depends
on System properties and is only ever loaded once.

Also configure failure parameters such that OSGi integration tests may
run despite any test failures.
@tolbertam

Copy link
Copy Markdown
Contributor Author

Looks like verify works great, thanks for the tip :). I think this is now good to go.

tolbertam added a commit that referenced this pull request Nov 13, 2015
Add isolated test group and profile for tests requiring their own JVM.
@tolbertam tolbertam merged commit 035c10f into 2.0 Nov 13, 2015
@tolbertam tolbertam deleted the isolatedTestGroup branch November 13, 2015 18:18
Sfurti-yb pushed a commit to yugabyte/cassandra-java-driver that referenced this pull request Dec 8, 2023
Also, improve PostgresTypes safety if the collection of type names is empty.

[resolves apache#515]

Signed-off-by: Mark Paluch <mpaluch@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants