DEV Community

loading...

Repeat tests. Repeat tests. Repeat tests.

ehmicky
1 min read

test-each is a Node.js library to repeat tests using different inputs (Data-Driven Testing):

  • test runner independent: works with your current setup
  • generates test titles that are descriptive, unique, for any JavaScript type (not just JSON)
  • loops over every possible combination of inputs (cartesian product)
  • can use random functions (fuzz testing)
  • snapshot testing friendly

Discussion (0)