Organising a test suite

From one test class to a suite. The layout comes first: src/main/java and src/test/java, two javac runs and a class path that holds both. A tag is the next tool: @Tag on a class or a method, and the --include-tag and --exclude-tag switches that filter a run, with the counts it prints. @Suite with @SelectClasses names the classes of a suite in one place. Parallel execution follows, with the configuration file and the order the report cannot promise. The part ends with the two reports a script reads: the console report and the XML file, and the exit status that says whether the run passed.

031 The layout of a test project src/main/java and src/test/java, two javac runs, the class path Open 032 Tags and filtering @Tag, --include-tag, --exclude-tag, the filtered counts Open 033 A suite of test classes @Suite, @SelectClasses, the suite line in the report Open 034 Parallel execution the configuration file, the parallel switch, the order the report cannot promise Open 035 Reports and exit status the console report, the XML report, the status a script reads Open

Lessons