serenity-bdd

How to do a debug for serenity projects


I have created a new project (infact its a default project of serenity). enter image description here Screenshot 1

enter image description here Screenshot 2

in the maven run configuration i have only added clean verify This runs the project without any issue but i want to debug the code in eclipse at the added breakpoint (as in screenshot 1) is there any configuration i need to add to the maven run configurations so as to debug the serenity projects.


Solution

  • Got the solution

    Right click on project Debug as -> Maven build ... In the goals field put -Dmaven.surefire.debug test In the parameters put a new parameter called forkCount with a value of 0