rtfeldman / rtfeldman/node-test-runner

testCompleted event should contain file path

Open
#371 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
140
Forks
83
Avg merge
8h 25m
Merged PRs (30d)
5

Description

If I run elm-test --report json elm-test will find all files in my test folder and run them.

Unfortunatly the testCompleted event, doesn't let us know which file it is from.

{
  "event": "testCompleted",
  "status": "fail",
  "labels": [
    "RoutingTests",
    "Route.fromUrl",
    "Parsing hash: \"#login\""
  ],
  "failures": [
    {
      "given": null,
      "message": "Expect.equal",
      "reason": {
        "type": "Equality",
        "data": {
          "expected": "Just Login",
          "actual": "Nothing",
          "comparison": "Expect.equal"
        }
      }
    }
  ],
  "duration": "3"
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing where the JSON output for the testCompleted event is assembled when running elm-test --report json. Compare the event data with the test files discovered by the runner, then verify that each event includes its source file path and that the existing JSON report output remains valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.