Nov 27, 2019

Supercharged End 2 End Testing with CodeceptJS

IMO best End 2 End testing tool till now: CodeceptJS

Resource Links:

codeceptjs | CodeceptJS@github | CodeceptJS Doc | codeceptjs@npmjs

CodeceptJS Community | CodeceptJS@slack | codeceptjs@stackoverflow


Presentation/Tutorials:

Michael Bodnarchuk: EFFECTIVE END TO END TESTING WITH CODECEPTJS | video

Intro to BDD style E2E testing with CodeceptJS, Docker Compose and Semaphore CI

Visual Testing Powered by CodeceptJS & Resemble.js

End-To-End Testing With CodeceptJS (Registration test w/ codeceptjs-tempmail)

codeceptjs jenkins integration

Running End to End tests as Google Cloud Functions

Pros:
  • Support web and mobile;
  • Better locator
  • Parallel Execution
  • Better report (allure), logging (–steps --verbose --debug)
  • Interactive debugging (shell, but no VS Code step-by-step debug)
  • Active development

Daily cmds:
  • npm install codeceptjs --save; npx codeceptjs init; npx codeceptjs def .; npx codeceptjs [gt|gpo|go|gh]
  • npm install -g selenium-standalone; selenium-standalone install; selenium-standalone start or use codeceptjs-selenium
  • npx codeceptjs run --steps
  • npx codeceptjs run -o '{"tests":"./account_test/example_test.js"}' # run test in non-config path
  • allure serve output
  • For signup: codeceptjs-maildev-helper