Skip to content

Instantly share code, notes, and snippets.

@shariffy
Last active September 3, 2017 14:35
Show Gist options
  • Save shariffy/73e38b3e5e98ba1e7955d3783bdfbc02 to your computer and use it in GitHub Desktop.
Save shariffy/73e38b3e5e98ba1e7955d3783bdfbc02 to your computer and use it in GitHub Desktop.

Test runners comparison

Name Spec reporter Tap reporter Fast Assert lib Module require Watch mode Nested tests Promises Arrow Functions Long stack traces possible Better error display Parallel tests Snapshot testing
Mocha Included Included Yes None included Not right Yes, with flag Yes Yes Discouraged No Diffs support Possible with mocha-parallel-tests and mocha.parallel No
AVA Minimal Included No + lots of dependencies Yes Yes, but needs to run with own CLI Yes, with flag No Yes Yes No With built-in asserts Yes, by default Yes
Tape Not included, need faucet or tap-spec Yes Yes Yes Yes No, can use nodemon but doesn't play well with piping to reporter Yes, with subtests, but doesn't display nested No, need to use blue-tape Yes Yes Either too short or user-unfriendly Possible with OS tools No
Lab Yes, but no list Yes Yes Yes, with Code Yes, but cumbersome No, possible with OS tools Yes, but displayed concatenated Yes Yes No With built-in asserts Yes, with flag No
Jasmine Yes No Yes Yes + spy No No Yes Yes Yes Untested Untested No No
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment