![]() Note that it is covered in detail in coming tutorials. There are bunch of other parameters that it can take, to be discussed later in Cucumber Options.įor curious minds, I will explain this code. JUnit Test Runner ClassĬreate a new Class file in the ‘ cucumberTest‘ package and name it as ‘ TestRunner‘, by right click on the Package and select New > Class. This class just needs annotations to understand that cucumber features would be run through it and you can specify feature files to be picked up plus the steps package location. In the src folder create a class called TestRunner. It more like a starting point for Junit to start executing your tests. This class will use the Junit annotation tells JUnit what is the test runner class. If you are not familiar with JUnit read our tutorials here. As Cucumber uses Junit we need to have a Test Runner class. But before we do that we have to add a class for running our tests. Now that we have defined the test its time to run our test. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |