Running Feature files directly with Eclipse:
1: Right click on the feature file and select "Debug As" or "Run As"
Create a new "Java Application" execution.
2: Under the "Main" tab....
2.1 It should have your Project name in the "Project:" field.... TODO: test replacing with a system prop for the currently selected files project* 2.2 Enter "cucumber.api.cli.Main" without quotes for the "Main class" field..
3: Under the tab for "Arguments"
3.1 For "Program Arguments", enter...
This will allow any selected feature file to be run, and ensure useful logging is sent to the IDE's console. Note that Eclipse's console does not support ANSI color (and delete prior line) console colors.
3.2 Under "VM Arguments..."
if you want to pass in system parameters, do so here:
This will turn on java assert() statements, which is need to allow the Then steps to throw assertion exceptions if the code a test is testing is broken.
STEPS 1 - 3 will be saved so you will not have to repeat them again.
4. Click the "Run" or "Debug" button.