Skip to content

bahmutov/demo-battery-api

 
 

Repository files navigation

Cypress tests for Battery Status API with code coverage step CircleCI

Forked from https://github.com/pazguille/demo-battery-api with its demo at http://pazguille.github.io/demo-battery-api/

Branch coverage-step

Use

git clone [email protected]:bahmutov/demo-battery-api.git
cd demo-battery-api
git checkout coverage-step
npm ci
npm run dev

Instrumented code from src folder will be placed in build folder and servers as the web application. After running Cypress you can see code coverage JSON file saved in the folder .nyc_output, and HTML report saved in the coverage folder. You can see the HTML report as a test artifact at CircleCI

CircleCI test artifacts

Click on the index.html to open the static site, for example here is the start of the index.js file

Index.js coverage

Read

About

🔋 Battery Status API Demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.6%
  • CSS 26.0%
  • HTML 11.4%