@Test
public void test() {
File phantom = new File(getPhantom());
PhantomTestRunner testRunner;
try {
testRunner = new PhantomTestRunner(phantom.getAbsolutePath());
File testFile1 = new File("src/test/resources/tests/one-test.html");
File testFile2 = new File("src/test/resources/tests/two-test.html");
File testFile3 = new File("src/test/resources/tests/more/three-test.html");
File testFileError = new File("src/test/resources/tests/more/error-test.html");
String[] testFiles = { testFile1.getAbsolutePath(), testFile2.getAbsolutePath(),
testFile3.getAbsolutePath(), testFileError.getAbsolutePath() };
JsTestResults results = testRunner.runTests(testFiles);
int failCount = 0;
int passCount = 0;
int errorCount = 0;
for (JsTestResult result : results.getTestResults()) {