DEV Community

ehmicky
ehmicky

Posted on

🤖 Repeat tests. Repeat tests. Repeat tests.

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

Top comments (0)