Open GoogleCodeExporter opened 9 years ago
reFit does not have an Ant task.
I'd recommend using a FitSuite with a custom configuration which reads the
output directory and possibly other parameters from system properties.
Then you can simply use the Ant junit task to run your FitSuite as a JUnit
test, passing in the required system properties.
See the FitSuite Javadoc and the following example:
@RunWith(SpringFitSuite.class)
@FitConfiguration(MyFitSuite.Configuration.class)
public class MyFitSuite {
public static class Configuration extends DefaultFitConfiguration {
private String inputDir;
private String dataDir;
private String[] includes;
@Override
public String getInputDir() {
if (inputDir == null) {
inputDir = System.getProperty("my.fit.inputRoot");
}
return inputDir;
}
@Override
public String[] getIncludes() {
if (includes == null) {
String prop = System.getProperty("my.fit.includes",
"**/*.fit.html");
includes = StringUtils.split(prop, ",");
}
return includes;
}
}
}
By the way, since you mentioned Jenkins, have you tried the reFit Jenkins
plugin?
Original comment by hwellman...@gmail.com
on 13 Apr 2012 at 6:51
Original issue reported on code.google.com by
shawndga...@gmail.com
on 14 Mar 2012 at 11:32