Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

In this tutorial, we will create some headless tests in JavaScript using CodeceptJS Puppeteer and Jest framework; we'll use mocha"jest-junit-reporter " to generate a compatible JUnit XML report.

Requirements

  • pupetteerpuppeteer
  • jest-environment-node
  • jest
  • jest-junit

Code

The following code and the setup instructions were inspired on jest-puppeteer-example tutorial.

...

The Execution Details of the Generic Test contains information about the Test Suite, which in this case corresponds to the name of the "describe" block.

References