|
| 1 | +[[release-notes-5.0.2]] |
| 2 | +=== 5.0.2 |
| 3 | + |
| 4 | +*Date of Release:* November 12, 2017 |
| 5 | + |
| 6 | +*Scope:* Bug fixes and minor improvements since the 5.0.1 release |
| 7 | + |
| 8 | +For a complete list of all _closed_ issues and pull requests for this release, consult the |
| 9 | +link:{junit5-repo}+/milestone/17?closed=1+[5.0.2] milestone page in the JUnit repository |
| 10 | +on GitHub. |
| 11 | + |
| 12 | + |
| 13 | +[[release-notes-5.0.2-junit-platform]] |
| 14 | +==== JUnit Platform |
| 15 | + |
| 16 | +===== Bug Fixes |
| 17 | + |
| 18 | +* Failed tests are now reported correctly with Maven Surefire for test engines that do |
| 19 | + not use `MethodSource` (e.g. Spek). |
| 20 | +* Tests that write to `System.out` or `System.err`, in particular via a logging |
| 21 | + framework, are now consistently reported correctly when executed with a non-zero |
| 22 | + `forkCount` with Maven Surefire. |
| 23 | + |
| 24 | +===== New Features and Improvements |
| 25 | + |
| 26 | +* The JUnit Platform Maven Surefire provider now supports the `redirectTestOutputToFile` |
| 27 | + Surefire feature. |
| 28 | +* The JUnit Platform Maven Surefire provider now ignores empty strings supplied via |
| 29 | + `<includeTags/>`, `<groups/>`, `<excludeTags/>`, and `<excludedGroups/>`. |
| 30 | + |
| 31 | + |
| 32 | +[[release-notes-5.0.2-junit-jupiter]] |
| 33 | +==== JUnit Jupiter |
| 34 | + |
| 35 | +===== Bug Fixes |
| 36 | + |
| 37 | +* Trailing spaces in a `@CsvSource` or `@CsvFileSource` input line no longer yield `null` |
| 38 | + values. |
| 39 | +* `@EnableRuleMigrationSupport` previously failed to recognize `@Rule` methods that |
| 40 | + returned a subtype of one of the supported `TestRule` types. Moreover, it mistakenly |
| 41 | + instantiated some rules declared using methods multiple times. Now, once enabled, it |
| 42 | + will instantiate all declared rules (fields _and_ methods) exactly once and call them |
| 43 | + in the same order used by JUnit 4. |
| 44 | +* Previously, disabled test classes were eagerly instantiated when `Lifecycle.PER_CLASS` |
| 45 | + was used. Now, `ExecutionCondition` evaluation always takes place before test class |
| 46 | + instantiation. |
| 47 | +* The `junit-jupiter-migrationsupport` module no longer incorrectly attempts to register |
| 48 | + the `JupiterTestEngine` via the `ServiceLoader` mechanism, thereby allowing it to be |
| 49 | + used as a module on the Java 9 module-path. |
| 50 | + |
| 51 | +===== New Features and Improvements |
| 52 | + |
| 53 | +* Failure messages for `assertTrue()` and `assertFalse()` in the `Assertions` class now |
| 54 | + include details about the expected and actual boolean values. |
| 55 | + - For example, the generated failure message for a call to `assertTrue(false)` is now |
| 56 | + "expected: <true> but was: <false>" instead of an empty string. |
| 57 | +* If a parameterized test does not consume all arguments supplied to it via argument |
| 58 | + sources, the unconsumed arguments are no longer included in the display name. |
| 59 | + |
| 60 | + |
| 61 | +[[release-notes-5.0.2-junit-vintage]] |
| 62 | +==== JUnit Vintage |
| 63 | + |
| 64 | +No changes. |
0 commit comments