Skip to content

Update CONTRIBUTING.md to clarify single-test running  #11231

Closed
@Trott

Description

In CONTRIBUTING.md:

You can run tests directly with node:

```text
$ ./node ./test/parallel/test-stream2-transform.js
```

This bit is a little problematic and can trip up new folks.

  • You can run tests in some directories (such as parallel and sequential) but not others (such as message).
  • If the test has a --FLAGS comment, then that needs to be taken into account on the command line or else the test won't work.

We could clarify all this, or we could just remove that bit of text entirely and instruct people to always use test.py. That second option seems like the better one to me. Discuss.

@nodejs/testing

Metadata

Assignees

No one assigned

    Labels

    discussIssues opened for discussions and feedbacks.docIssues and PRs related to the documentations.testIssues and PRs related to the tests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions