Skip to content

Commit

Permalink
Add warning to User Guide re: default test instance lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen authored and Andrei94 committed Jun 23, 2018
1 parent 7b35bba commit e16cc3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions documentation/src/docs/asciidoc/writing-tests.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ you can start your JVM with the following system property.

`-Djunit.jupiter.testinstance.lifecycle.default=per_class`

WARNING: Changing the _default_ test instance lifecycle mode can lead to unpredictable
results and fragile builds if not applied consistently. For example, if the build
configures "per-class" semantics as the default but tests in the IDE are executed using
"per-method" semantics, that can make it difficult to debug errors that occur on the
build server.

[[writing-tests-nested]]
=== Nested Tests

Expand Down

0 comments on commit e16cc3a

Please sign in to comment.