Run The Test - See it fail !

Now that you have the test ready, i.e. scenario has been created and the glue code also exists, we should expect it to run.

Well it will run but not pass. Let's try it.

Go to the Feature file. Do a right click -> Run Feature What do you see?

It should fail saying step definitions not found.

Well you could argue that the step definitions are there in the step class we wrote.

Here is the interesting thing. We know that the code exisits in such and such class for my scenarios But jvm that is trying to run the tests doesn't know and it needs to be told that the step files exists at a certain location and only then it can pick up and run your tests.

Now is the time to introduce different ways of running cucumber-jvm features.

Time for the next chapter.

results matching ""

    No results matching ""