JavaScript tests runner


Keywords
javascript, testing, framework, test, tests, coverage, lcov, report, results, xUnit
License
MIT
Install
npm install just-test@3.0.4

Documentation

npm version License GitHub

Quality pipeline Codecov

Codacy

Summary

just-test is an all-JS platforms oriented test runner strongly opinionated towards testing libraries, frameworks and components.

TODO

Highlights:

  • running tests in browser, no server needed, import/link your code (static files) and just test, literally TDD oriented
  • re-running any test in browser ad-hoc - convenient for debugging and developing on the fly
  • friendly UI on top of the page of the tests, allows immediatelly observe the behavior of the code and the test
  • running tests from NodeJS via headless browser (chromium, firefox, webkit) to run in CI/CD automation
  • generating test results report (types: xUnit)
  • collecting coverage and generating report (types: lcov)
  • flexible yet simple ability to run tests in sync as well as async (default) manner
  • in general, a lot of attention was paid to create simple and usable framework even for a not-so-simple cases, like asynchronous tests etc

Attention: the doc below is still in construction, more updates and detailed one will be published very soon!!! Meanwhile, the best way to actually see how the library should be used is it look onto its own tests in tests folder, and for CI/CD case - travis.yml is a good start.

CI readiness

TODO - move to features

  • run your tests in CI in the following browsers: Chromium (covering all based upon), Firefox, WebKit
  • test report types: xUnit
  • coverage report types: lcov

Examples

TODO

API

TODO