Skip to content

jay0815/coverage-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7f6bf29 · Aug 18, 2020

History

9 Commits
Aug 18, 2020
Aug 18, 2020
Aug 14, 2020
Aug 18, 2020
Aug 14, 2020
Aug 14, 2020
Aug 14, 2020
Aug 18, 2020
Aug 18, 2020
Aug 14, 2020
Aug 18, 2020
Aug 18, 2020
Aug 14, 2020
Aug 18, 2020
Aug 14, 2020

Repository files navigation

coverage-test-demo-template

A base test suit by karam

codecov github-action-image

中文 README

Features

  • support ES6
    • has integrated babel
  • support test in (DOM|BOM)
    • karam support headless browser and noarmal browser, so we can run code in real env
  • support multi browsers
  • support BDD or TDD test case
    • has integrated chai
  • suport coverage test
    • has integrated coverage-istanbul
    • yarn coverage image
  • suport check report in browser
    • has integrated webpack-dev-server
    • yarn report
  • suport upload test result and get codecov
    • has integrated codecov
    • yarn codecov image

Who need this template

  • want to write test case in ES6
  • simulate formal environment
  • has some little accidentes in put up karma test framework

may be you can use AVA or Cypress or Jest

Choose the right reporter you want

Istanbul's reporters

How to use codecov

  • registered codecov
  • bind your repository in codecov
  • get CODECOV_TOKEN and replace same place into package.json
  • yarn codecov
  • go to codecov settings' Badge