protected void generateTapPerMethod ( Result result ) { for ( final JUnitTestData testMethod : testMethodsList ) { final TestResult tapTestResult = TapJUnitUtil . generateTAPTestResult ( testMethod , 1 , isYaml ( ) ) ; final TestSet testSet = new TestSet ( ) ; testSet . setPlan ( new Plan ( 1 ) ) ; testSet . addTestResult ( tapTestResult ) ; final String className = TapJUnitUtil . extractClassName ( testMethod . getDescription ( ) ) ; final String methodName = TapJUnitUtil . extractMethodName ( testMethod . getDescription ( ) ) ; final File output = new File ( System . getProperty ( "tap.junit.results" , "target/" ) , className + ":" + methodName + ".tap" ) ; tapProducer . dump ( testSet , output ) ; } }
Generate tap file for each method