public static void setTapTestStatus( TestResult tapTestResult, JUnitTestData testMethod )
{
if(testMethod.isIgnored())
{
tapTestResult.setStatus(StatusValues.NOT_OK);
Directive skip = new Directive(DirectiveValues.SKIP, "JUnit test was skipped");
tapTestResult.setDirective( skip );
}
else if(testMethod.isFailed())
{
tapTestResult.setStatus(StatusValues.NOT_OK);