@Test(expected = IllegalArgumentException.class) public void testNoScmFromSystemProperty() { fillSystemProperties(); System.clearProperty("sandboni.scm.from"); Application.main(new String[]{}); }
public static void main(String[] args) { Application app = new Application(); app.buildArguments(); Arguments arguments = app.getArguments(); long start = System.nanoTime(); final Processor processor = new ProcessorBuilder() .with(pb -> pb.arguments = arguments) .build(); Set<TestVertex> relatedTests = processor.getResultGenerator().generate(ResultContent.RELATED_TESTS).get(ResultContent.RELATED_TESTS); Set<TestVertex> disconnectedTests = processor.getResultGenerator().generate(ResultContent.DISCONNECTED_TESTS).get(ResultContent.DISCONNECTED_TESTS); Set<TestVertex> testSuites = processor.getResultGenerator().generate(ResultContent.TEST_SUITES).get(ResultContent.TEST_SUITES); log.info("Related tests to execute: {}", relatedTests); log.info("Related tests to execute (size): {}", relatedTests.size()); log.info("Disconnected tests to execute: {}", disconnectedTests); log.info("Related test suites: {}", testSuites); log.info("Sandboni execution: {} milliseconds", TimeUtils.elapsedTime(start)); }
Application { public static void main(String[] args) { Application app = new Application(); app.buildArguments(); Arguments arguments = app.getArguments(); long start = System.nanoTime(); final Processor processor = new ProcessorBuilder() .with(pb -> pb.arguments = arguments) .build(); Set<TestVertex> relatedTests = processor.getResultGenerator().generate(ResultContent.RELATED_TESTS).get(ResultContent.RELATED_TESTS); Set<TestVertex> disconnectedTests = processor.getResultGenerator().generate(ResultContent.DISCONNECTED_TESTS).get(ResultContent.DISCONNECTED_TESTS); Set<TestVertex> testSuites = processor.getResultGenerator().generate(ResultContent.TEST_SUITES).get(ResultContent.TEST_SUITES); log.info("Related tests to execute: {}", relatedTests); log.info("Related tests to execute (size): {}", relatedTests.size()); log.info("Disconnected tests to execute: {}", disconnectedTests); log.info("Related test suites: {}", testSuites); log.info("Sandboni execution: {} milliseconds", TimeUtils.elapsedTime(start)); } }
Application { public static void main(String[] args) { Application app = new Application(); app.buildArguments(); Arguments arguments = app.getArguments(); long start = System.nanoTime(); final Processor processor = new ProcessorBuilder() .with(pb -> pb.arguments = arguments) .build(); Set<TestVertex> relatedTests = processor.getResultGenerator().generate(ResultContent.RELATED_TESTS).get(ResultContent.RELATED_TESTS); Set<TestVertex> disconnectedTests = processor.getResultGenerator().generate(ResultContent.DISCONNECTED_TESTS).get(ResultContent.DISCONNECTED_TESTS); Set<TestVertex> testSuites = processor.getResultGenerator().generate(ResultContent.TEST_SUITES).get(ResultContent.TEST_SUITES); log.info("Related tests to execute: {}", relatedTests); log.info("Related tests to execute (size): {}", relatedTests.size()); log.info("Disconnected tests to execute: {}", disconnectedTests); log.info("Related test suites: {}", testSuites); log.info("Sandboni execution: {} milliseconds", TimeUtils.elapsedTime(start)); }  }
Application { public static void main(String[] args) { Application app = new Application(); app.buildArguments(); Arguments arguments = app.getArguments(); long start = System.nanoTime(); final Processor processor = new ProcessorBuilder() .with(pb -> pb.arguments = arguments) .build(); Set<TestVertex> relatedTests = processor.getResultGenerator().generate(ResultContent.RELATED_TESTS).get(ResultContent.RELATED_TESTS); Set<TestVertex> disconnectedTests = processor.getResultGenerator().generate(ResultContent.DISCONNECTED_TESTS).get(ResultContent.DISCONNECTED_TESTS); Set<TestVertex> testSuites = processor.getResultGenerator().generate(ResultContent.TEST_SUITES).get(ResultContent.TEST_SUITES); log.info("Related tests to execute: {}", relatedTests); log.info("Related tests to execute (size): {}", relatedTests.size()); log.info("Disconnected tests to execute: {}", disconnectedTests); log.info("Related test suites: {}", testSuites); log.info("Sandboni execution: {} milliseconds", TimeUtils.elapsedTime(start)); }  static void main(String[] args); Arguments getArguments(); Map<String, String> getProperties(); }
Application { public static void main(String[] args) { Application app = new Application(); app.buildArguments(); Arguments arguments = app.getArguments(); long start = System.nanoTime(); final Processor processor = new ProcessorBuilder() .with(pb -> pb.arguments = arguments) .build(); Set<TestVertex> relatedTests = processor.getResultGenerator().generate(ResultContent.RELATED_TESTS).get(ResultContent.RELATED_TESTS); Set<TestVertex> disconnectedTests = processor.getResultGenerator().generate(ResultContent.DISCONNECTED_TESTS).get(ResultContent.DISCONNECTED_TESTS); Set<TestVertex> testSuites = processor.getResultGenerator().generate(ResultContent.TEST_SUITES).get(ResultContent.TEST_SUITES); log.info("Related tests to execute: {}", relatedTests); log.info("Related tests to execute (size): {}", relatedTests.size()); log.info("Disconnected tests to execute: {}", disconnectedTests); log.info("Related test suites: {}", testSuites); log.info("Sandboni execution: {} milliseconds", TimeUtils.elapsedTime(start)); }  static void main(String[] args); Arguments getArguments(); Map<String, String> getProperties();  }