Open softwaredev999 opened 2 years ago
Console:
INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 93.262 s - in Story description
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- maven-failsafe-plugin:2.22.1:verify (default) @ SerenityCucumberPageObjects ---
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ SerenityCucumberPageObjects ---
[INFO] Deleting C:\Users\.......\Serenity_Project\target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:15 min
[INFO] Finished at: 2022-06-18T21:35:25-04:00
[INFO] ------------------------------------------------------------------------
Not sure why it says "[INFO] Deleting C:\Users.......\Serenity_Project\target"?
Maven command used too run this?
There is <serenity.maven.version>3.2.0</serenity.maven.version>
property in your POM, while no serenity maven plugin, so it's no one to generate this HTML report.
Add a plugin and configure its stage, then should work as expected, e.g. as in the example project https://github.com/serenity-bdd/serenity-cucumber-starter
<plugin>
<groupId>net.serenity-bdd.maven.plugins</groupId>
<artifactId>serenity-maven-plugin</artifactId>
<version>${serenity.version}</version>
<configuration>
<tags>${tags}</tags>
</configuration>
<executions>
<execution>
<id>serenity-reports</id>
<phase>post-integration-test</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
Hello,
Serenity + Cucumber
When I run as maven build, no html report get generated. Folder "target" is completely blank. I do not see anything in target folder even after I refresh the project in eclipse.
When I run the runner file as jUnit test html reports get generated. I see all the contents under target folder.
POM.xml
Runner file
May I know why "target" directory is blank when I run tests as maven build?