I have a gradle + Serenity + RestAssured automated check suite setup that I usually run via gradle commands in shell sessions, but sometimes I need to run single Scenarios using IntelliJ.
When I run Scenarios on IntelliJ I usually get a lot of warnings like this one:
8312 [main] WARN cucumber.runtime.SerenityBackend - It looks like you are
running a feature using @RunWith(Cucumber.class)
instead of @RunWith(CucumberWithSerenity.class).
Are you sure this is what you meant to do?
I'd like to know where and how I can configure the Run/Debug Configuration in IntelliJ in order to run the checks with the CucumberWithSerenity.class
and fix the warning.
I'm using the following dependencies:
serenity-rest-assured:1.9.31
serenity-core:1.9.31
serenity-cucumber:1.9.12
IntelliJ version 2018.1.5 (Community Edition)