I have a big java .jar with dependencies and classes, when excute the .jar, I need to generate the folder "allure-results", Is it possible to do that?
1) execute the -jar
2) run the tests
3) generate the folder allure-results
the idea is to run without maven.
----- Solved
i create a main.
public static void main(String[] args) {
JUnitCore engine = new JUnitCore();
engine.addListener(new AllureJunit4());
engine.run(testsSuitName.class);
}
when you exec the fat jar and the test its ok, the jar create the folder "allure-results"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…