-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
Proposal: Adding a built-in test runner #40954
Copy link
Copy link
Closed
Labels
discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Metadata
Metadata
Assignees
Labels
discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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 ... ornode --test foo.jsto run all tests found in thefoo.jsfile, 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.