Examples of runSuite()


Examples of fi.jumi.launcher.JumiBootstrap.runSuite()

    @Test
    public void runs_tests_with_current_classpath() throws Exception {
        JumiBootstrap bootstrap = new JumiBootstrap().setTextUiOutput(out);
        bootstrap.suite.setTestClasses(OnePassingTest.class);

        bootstrap.runSuite();

        String out = this.out.toString();
        assertThat("should show test results", out, containsString("Pass: 2"));
        assertThat("should hide passing tests by default", out, not(containsString("OnePassingTest")));
    }
View Full Code Here

Examples of fi.jumi.launcher.JumiBootstrap.runSuite()

        JumiBootstrap bootstrap = new JumiBootstrap().setTextUiOutput(out);
        bootstrap.suite.setTestClasses(OneFailingTest.class);

        thrown.expect(AssertionError.class);
        thrown.expectMessage("There were test failures");
        bootstrap.runSuite();
    }

    @Test
    public void can_debug_the_daemons_actor_messages() throws Exception {
        ByteArrayOutputStream daemonOutput = new ByteArrayOutputStream();
View Full Code Here

Examples of fi.jumi.launcher.JumiBootstrap.runSuite()

    public void can_debug_the_daemons_actor_messages() throws Exception {
        ByteArrayOutputStream daemonOutput = new ByteArrayOutputStream();
        JumiBootstrap bootstrap = new JumiBootstrap().setTextUiOutput(out).enableDebugMode(daemonOutput);
        bootstrap.suite.setTestClasses(OnePassingTest.class);

        bootstrap.runSuite();

        assertThat(daemonOutput.toString(), containsString("[jumi-actor-1]"));
    }

    @Test
View Full Code Here

Examples of fi.jumi.launcher.JumiBootstrap.runSuite()

            JumiBootstrap bootstrap = new JumiBootstrap();
            bootstrap.suite.setTestClasses(OnePassingTest.class);
            bootstrap.daemon.setIdleTimeout(0); // we want the daemon process to exit quickly
            bootstrap.setTextUiOutput(new NullWriter());
            bootstrap.enableDebugMode(); // <-- the thing we are testing
            bootstrap.runSuite();

            Thread.sleep(50); // wait for the daemon process to exit, and our printer thread to notice it
            assertThat("this test has a problem; daemon printed nothing", printed.size(), is(not(0)));
            verify(spiedErr, never()).close(); // <-- the thing we are testing
View Full Code Here

Examples of org.andromda.translation.ocl.testsuite.TranslationTestProcessor.runSuite()

                formatter.setReportFile(report);
                final TestResult result = new TestResult();
                formatter.startTestSuite(this.getProject().getName());
                result.addListener(formatter);
                processor.setResult(result);
                processor.runSuite();
                this.getLog().info("");
                this.getLog().info("Results:");
                this.getLog().info(formatter.endTestSuite());
                if (result.failureCount() > 0 || result.errorCount() > 0)
                {
View Full Code Here

Examples of org.andromda.translation.ocl.testsuite.TranslationTestProcessor.runSuite()

                formatter.setReportFile(report);
                final TestResult result = new TestResult();
                formatter.startTestSuite(this.getProject().getName());
                result.addListener(formatter);
                processor.setResult(result);
                processor.runSuite();
                this.getLog().info("");
                this.getLog().info("Results:");
                this.getLog().info(formatter.endTestSuite());
                if (result.failureCount() > 0 || result.errorCount() > 0)
                {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.