Trying to run Cucumber with Serenity using JUnit 5.
When the Test Runner has a @RunWith(Cucumber.class)
annotation, the tests run, although Serenity does not record the outcome.
When the Test Runner has @RunWith(CucumberWithSerenity.class)
, a "NoClassDefFound cucumber/runtime/junit/Assertions" is thrown.
I thought it may be JUnit 5, so I switched to JUnit 4 and the same outcome happens.
I loaded the sample project into GitHub: https://github.com/WB3Tech/Cucumber-Serenity-JUnit5
The goal is to build the project then be able to see the Cucumber results in the Serenity html output.
Anyone have an idea of where I may be going wrong?