Skip to content

Instantly share code, notes, and snippets.

@xeolabs
Created September 24, 2009 22:33
Show Gist options
  • Save xeolabs/193117 to your computer and use it in GitHub Desktop.
Save xeolabs/193117 to your computer and use it in GitHub Desktop.
/**
* Finishing current JsUnit testcase as passed.
*/
private static void pass() {
if (currentTest != null) {
runNotifier.fireTestFinished(currentTest);
currentTest = null;
}
}
/**
* Finishing current JsUnit testcase as failed.
*
* @param details JsUnit provided failure details.
*/
private static void fail(String details) {
Failure failure = new Failure(currentTest, new RuntimeException(details));
runNotifier.fireTestFailure(failure);
currentTest = null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment