Description
At the risk of opening a whole can of worms given that literally everyone gets super opinionated about test runners... I'd like to propose that we add a built-in test runner to Node.js.
Specifically allowing for something like node --test foo/*
to run all tests found in the foo directory ... or node --test foo.js
to run all tests found in the foo.js
file, etc.
Obviously, this begs the question: Which test runner do we go with. There are options.
-
Vendor in an existing test runner (in which case which should we use?) ... Note: this is not an invitation to start advocating for your specific favorite test runner in this thread. At this point we just need to decide if vendoring in an existing runner is the right choice. We can bike shed on exactly which one that should be later.
-
Implement our own minimalistic test runner with the specific goal of it being extremely small and intentionally lite on features.