tape-testing / tape

tap-producing test harness for node and browsers
MIT License
5.77k stars 307 forks source link

Tips on how to run a single test #589

Closed naftalimurgor closed 1 year ago

naftalimurgor commented 1 year ago

Summary

Scenario:

  1. Let say we have several tests, hypothetically inside test/
  2. Inside the test/ directory we only want to focus on only running foo.test.ts from the terminal/commandline,

How do we achieve this? , I can't seem to find any insights in the documentation.

Thanks

ljharb commented 1 year ago

You can run a single test file using tape by merely invoking it with node, or with tape. There isn’t an easy way of running s single test, though, besides only.

naftalimurgor commented 1 year ago

@ljharb

Thanks! Pretty much answers the question.