Skip to content

Rename regression tests with descriptive file names #19105

Closed

Activity

  1. added
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Mar 3, 2018
  2. BridgeAR commented on Mar 3, 2018

    @BridgeAR
    Member

    +1 from me.

  3. BridgeAR commented on Mar 3, 2018

    @BridgeAR
    Member

    It is especially good to rename them with the appropriate subsystem. It is much easier to run all tests from one subsystem if the names are right.

  4. mcollina commented on Mar 3, 2018

    @mcollina
    SponsorMember

    +1

  5. joyeecheung commented on Mar 3, 2018

    @joyeecheung
    MemberAuthor

    BTW: I am not sure if they count as good first contributions, but this is what I would usually do to find out how to rename an existing test

    1. Look for the test description in the top of the file, if it has one
    2. Take a look at the history of the file (click the "history" button on the top right of the file's page in Github UI), and trace back to the earliest commit to find out what it is testing. Notice that there are a lot of test being moved from test/simple to test/parallel/test-sequential during 0e19476, in that case, search the test using "find file" in the commit prior to that, then look at the history in the original test again.
    3. When you find the commit that created the file, look at the commit log for issue links to read about the context.
    4. Optionally, look at the git blame of the test to find out more about the test.

    Of course one can always just look at the code to guess what the test is doing, but I usually find discussions in issues and PRs more informative, and you are less likely to guess wrong with those context.

  6. richardlau commented on Mar 3, 2018

    @richardlau
    Member

    (I vaguely remember there was a similar issue but could not find it..if it is a duplicate, please leave a pointer, thanks!)

    #17948?

  7. richardlau commented on Mar 3, 2018

    @richardlau
    Member

    Also can see if the matching issue/pull request in the archived v0.x repository looks relevant.

    e.g., test/sequential/test-regress-GH-1697.js is testing nodejs/node-v0.x-archive#1697.

    Unfortunately some (most?) of these originate from before we started writing metadata into the commit messages linking back to pull requests and issues.

  8. juggernaut451 commented on Mar 5, 2018

    @juggernaut451
    Contributor

    @joyeecheung working on it

  9. tniessen commented on Mar 5, 2018

    @tniessen
    Member

    (I vaguely remember there was a similar issue but could not find it..if it is a duplicate, please leave a pointer, thanks!)

    @joyeecheung I don't remember an issue, but there was #17948 with a similar intention.

    Edit: Oops, missed @richardlau's #19105 (comment).

  10. 78 remaining items

  11. added a commit that references this issue on Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testIssues and PRs related to Node.js core tests and test infrastructure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions