Skip to content

E2E test framework that uses jest as test runner, jest-cucumber to write tests and selenium to control the browser

Notifications You must be signed in to change notification settings

GabrielL/jest-cucumber-selenium

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The test will execute a cucumber scenario outline of one feature in parallel to reduce testing time.

This test framework uses:

  • Jest
  • Jest-Cucumber
  • Selenium Webdriver
  • Jest-Html-Reporters

To run the framework, you just need to:

npm run test

The test will be executed headless and concurrent, and an HTML report will be generated in ./reports

NOTE:

  • Before and After Hooks were not used due to jestjs/jest#4281 when running test.concurrent
  • If you want to use beforeEach and afterEach hook, remove the .concurrent and add the hooks to the share-steps, but will increase the execution time as each scenario will be ran individually.

As a workaround a world object was created to separate the driver instances, by passing an identifier named "engine" that drives the test.

About

E2E test framework that uses jest as test runner, jest-cucumber to write tests and selenium to control the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.9%
  • Gherkin 14.1%