@Test
    public void noTestJarIsANoTests() throws InterruptedException, IOException, ExecutionException {
        Files.delete(artifactsPath.resolve("my-tests.jar"));
        TestRunner runner = new TestRunner(artifactsPath, testPath, configFile, settingsFile,
                                           __ -> new ProcessBuilder("This is a command that doesn't exist, for sure!"));
        runner.test(SYSTEM_TEST, new byte[0]).get();
        assertFalse(runner.getLog(-1).iterator().hasNext());
        assertEquals(TestRunner.Status.NO_TESTS, runner.getStatus());
    }
Unit tests relying on a UNIX shell >_<

@author jvenstad
vespa-testrunner-components/src/test/java/com/yahoo/vespa/hosted/testrunner/TestRunnerTest.java