File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,31 @@ junitPlatform {
1616 includeClassNamePattern ' .*'
1717}
1818
19+ /* NEW: (REQUIRES CODE REWRITES IN BOOK AND TEST CODE)
20+ -> http://junit.org/junit5/docs/current/user-guide/
21+
22+ ext {
23+ junitJupiterVersion = '5.0.0-M3'
24+ }
25+
26+ dependencies {
27+ testCompile "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
28+ testRuntime "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
29+ }
30+
31+
32+ junitPlatform {
33+ platformVersion '1.0.0-M3'
34+
35+ filters {
36+ packages {
37+ exclude 'understandingcollections.jmh'
38+ }
39+ includeClassNamePattern '.*'
40+ }
41+ }
42+ */
43+
1944/* Store test output in $projectName/tests
2045 JUnit 5's junitPlatformTest runs as a "javaExec" rather than a "test",
2146 so we can't hook into the before/after test behavior.
You can’t perform that action at this time.
0 commit comments