MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / main

Method main

test/TestIntegration.java:96–121  ·  view source on GitHub ↗
(final String[] args)

Source from the content-addressed store, hash-verified

94 private GetRequest[] gets;
95
96 public static void main(final String[] args) throws Exception {
97 preFlightTest(args);
98 table = args[0];
99 family = args[1];
100 TestIntegration.args = args;
101 LOG.info("Starting integration tests");
102 final JUnitCore junit = new JUnitCore();
103 final JunitListener listener = new JunitListener();
104 junit.addListener(listener);
105 final String singleTest = System.getenv("TEST_NAME");
106 final Request req;
107 if (singleTest != null) {
108 req = Request.method(TestIntegration.class, singleTest);
109 } else {
110 req = Request.aClass(TestIntegration.class);
111 }
112 final Result result = junit.run(req);
113 LOG.info("Ran " + result.getRunCount() + " tests in "
114 + result.getRunTime() + "ms");
115 if (!result.wasSuccessful()) {
116 LOG.error(result.getFailureCount() + " tests failed: "
117 + result.getFailures());
118 System.exit(1);
119 }
120 LOG.info("All tests passed!");
121 }
122
123 @Before
124 public void setUp() {

Callers

nothing calls this directly

Calls 3

preFlightTestMethod · 0.95
methodMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected