ReportPatcher.runOnShutDown( "cucumber_acceptance_test/smoke-html-report/");
public static void runOnShutDown( String reportDir )
{
ReportPatcher patcher = new ReportPatcher( reportDir );
Thread patcherThread = new Thread( patcher );
Runtime.getRuntime().addShutdownHook( patcherThread );
}
copyToOutput("style.css");
copyToOutput("formatter.js");
Hi,I've been struggling with the html output of cucumber-jvm (running it from JUnit), that by far doesn't look as pretty as the ruby output.To do so, I add in a beforeAll hook:ReportPatcher.runOnShutDown("cucumber_acceptance_test/smoke-html-report/");
publicstaticvoid runOnShutDown(String reportDir )
{
ReportPatcher patcher =newReportPatcher( reportDir );
Thread patcherThread =newThread( patcher );
Runtime.getRuntime().addShutdownHook( patcherThread );
}
that does a:copyToOutput("style.css");
copyToOutput("formatter.js");
which overwrites the original with my own version of the css and js in the output folder.using this shutdown hook, and a needing to set the folder statically, makes it a dirty hack. Any suggestions on how to do this better?
--Posting rules: http://cukes.info/posting-rules.html---You received this message because you are subscribed to the Google Groups "Cukes" group.To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.For more options, visit https://groups.google.com/d/optout.