All Projects → rtsao → unitest

rtsao / unitest

Licence: MIT license
🌎 Seamless node and browser unit testing with code coverage

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to unitest

tropic
🍍 Test Runner Library
Stars: ✭ 29 (+3.57%)
Mutual labels:  tap, tape
jacoco-badge-generator
Coverage badges, and pull request coverage checks, from JaCoCo reports in GitHub Actions
Stars: ✭ 53 (+89.29%)
Mutual labels:  coverage, coverage-report
tap-xunit
TAP to xUnit XML converter
Stars: ✭ 40 (+42.86%)
Mutual labels:  tap, tape
Typescript Coverage Report
Node command tool to generate TypeScript coverage report
Stars: ✭ 138 (+392.86%)
Mutual labels:  coverage, coverage-report
react-testing-mocha-chai-enzyme
A solid test setup for React components with Mocha, Chai, Sinon, Enzyme in a Webpack/Babel application.
Stars: ✭ 48 (+71.43%)
Mutual labels:  coverage, coverage-report
Codecov Python
Python report uploader for Codecov
Stars: ✭ 162 (+478.57%)
Mutual labels:  coverage, coverage-report
istanbul-badges-readme
Creates and updates README testing coverage badges with your json-summary
Stars: ✭ 77 (+175%)
Mutual labels:  coverage, istanbul
Gcovr
generate code coverage reports with gcc/gcov
Stars: ✭ 482 (+1621.43%)
Mutual labels:  coverage, coverage-report
enterprise
Code coverage done right.® On-premise enterprise version.
Stars: ✭ 63 (+125%)
Mutual labels:  coverage, coverage-report
playwright-test
Run unit tests with several runners or benchmark inside real browsers with playwright.
Stars: ✭ 81 (+189.29%)
Mutual labels:  tape, istanbul
Bashcov
Code coverage tool for Bash
Stars: ✭ 113 (+303.57%)
Mutual labels:  coverage, coverage-report
javadoc-coverage
A Doclet to generate JavaDoc coverage reports ☕️🧪📗
Stars: ✭ 23 (-17.86%)
Mutual labels:  coverage, coverage-report
Codacy Coverage Reporter
Multi-language coverage reporter for Codacy
Stars: ✭ 96 (+242.86%)
Mutual labels:  coverage, coverage-report
Coverlet
Cross platform code coverage for .NET
Stars: ✭ 2,303 (+8125%)
Mutual labels:  coverage, unittest
Gogradle
A Gradle Plugin Providing Full Support for Go
Stars: ✭ 712 (+2442.86%)
Mutual labels:  coverage, coverage-report
node-bogota
🚀 Run tape tests concurrently with tap-spec output
Stars: ✭ 15 (-46.43%)
Mutual labels:  tap, tape
Simplecov
Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites
Stars: ✭ 4,362 (+15478.57%)
Mutual labels:  coverage, coverage-report
Xcov
Nice code coverage reporting without hassle
Stars: ✭ 467 (+1567.86%)
Mutual labels:  coverage, coverage-report
jest-badges-readme
Creates a group of coverage badges from Jest into your README
Stars: ✭ 30 (+7.14%)
Mutual labels:  coverage, istanbul
zx tape player
Just another tape player has been written in Flutter for iOS and Android. The application is able to find tapes and theirs images using https://zxInfo.dk public API and upload them to ZX-Spectrum compatible computers by the audio output of the smartphone. Now it supports TAP and TZX tape images only.
Stars: ✭ 26 (-7.14%)
Mutual labels:  tap, tape

unitest logo

build status dependencies status npm version

Seamless node and browser unit testing with code coverage

Features
  • Unified node and browser tests with merged TAP output, code coverage reports, and exit status codes.
  • Headless Chrome-powered browser testing for a fast, modern browser testing environment.
  • Bundler-agnostic usage. Use browserify, webpack, or something else.
  • Designed to be used with Babel-powered coverage instrumentation for fast, efficient testing with code coverage.
  • Works seamlessly with nyc, the official Istanbul CLI.

Usage

Usage: unitest {OPTIONS}

Options:

    --version, -v  Print version and exit

       --help, -h  Print usage information

       --node, -n  Path to node test entry file

    --browser, -c  Path to browser test entry file

Getting Started

Run node and browser tests

  1. Transpile source code with Babel (optional)
  2. Bundle browser code
  3. Run unitest, specifying test entry files
babel src -d build
browserify build/test/browser.js > build/test/browser-bundle.js
unitest --browser=build/test/browser-bundle.js --node=build/test/node.js

Run node and browser tests with coverage report

Unitest works with nyc, the Istanbul CLI. To run unitest with coverage, add the Istanbul instrumentation Babel plugin then run unitest with nyc on the instrumented code:

babel src -d build --plugins=istanbul
browserify build/test/browser.js > build/test/browser-bundle.js
nyc --report=html unitest --browser=build/test/browser-bundle.js --node=build/test/node.js

Merged test output

The separate TAP and coverage output along with exit code for your node and browser tests will be merged seamlessly.

Debugging

Debug node tests

No magic here, just use plain node.

node --inspect-brk build/test/node.js

Debug browser tests

Coming soon: ability to launch Chrome with a DevTools window open, or let you connect to the script URL manually.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].