just-tap
mocha
just-tap | mocha | |
---|---|---|
3 | 2 | |
9 | 21,338 | |
- | - | |
7.0 | 8.5 | |
6 months ago | about 2 years ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
just-tap
- Simple lightweight JavaScript test runner that works in the browser and nodejs
-
Stop requiring only one assertion per unit test: Multiple assertions are fine
Yup, it's why I built `just-tap` [1] which trys to minimise as much magic that a lot of these frameworks try to "help" you with.
1. https://github.com/markwylde/just-tap
- Show HN: A JavaScript test runner that works in any JavaScript runtime
mocha
-
Running the same mocha test multiple times with different data
There is some tecnique that is called Shared Behaviours . But it does not solve the problem directly with a test suite, it just solve the problem with different components that have duplicated tests.
-
Skip subsequent Mocha tests from spec if one fails
EDIT: and now, according to https://github.com/visionmedia/mocha/commit/f0b441ceef4998e570a794dcff951bf2330eb0c5latest Mocha have bail option from the box. Thanks to authors!
What are some alternatives?
zora - Lightest, yet Fastest Javascript test runner for nodejs and browsers
eventemitter3 - EventEmitter3 - Because there's also a number 2. And we're faster.
unquote - Write F# unit test assertions as quoted expressions, get step-by-step failure messages for free
gokiburi - Automatic test runs for Go projects
pytest-parametrize-cases - Nicer way to do parametrized tests
test - testing some html5 audio players with the goal of finding a good one with strong playlist support
JSONAssert - Write JSON unit tests in less code. Great for testing REST interfaces.
javascript-testing-best-practices - 📗🌐 🚢 Comprehensive and exhaustive JavaScript & Node.js testing best practices (July 2023)
ts-pattern - 🎨 The exhaustive Pattern Matching library for TypeScript, with smart type inference.
cep-promise - Busca por CEP integrado diretamente aos serviços dos Correios, ViaCEP e outros (Node.js e Browser)
mocha - ☕️ simple, flexible, fun javascript test framework for node.js & the browser
eaf-linter - 🤪 A linter, prettier, and test suite that does everything as-simple-as-possible.