Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NaNms printed when run with --dry-run #106

Open
dnoliver opened this issue Aug 15, 2022 · 0 comments
Open

NaNms printed when run with --dry-run #106

dnoliver opened this issue Aug 15, 2022 · 0 comments

Comments

@dnoliver
Copy link

Running with spec reporter

$ npx mocha ./workflows/test.js --dry-run --reporter spec

  @016 Test
    ✔ #001 Step 1
    ✔ #002 Step 2
    ✔ #003 Step 3
    ✔ #004 Step 4

Running with mocha-multi-reporters, using mocha-jenkins-reporter

$ npx mocha ./workflows/test.js --dry-run --reporter mocha-multi-reporters --reporter-option configFile=config.json

  @016 Test
      ✔ #001 Step 1: NaNms
      ✔ #002 Step 2: NaNms
      ✔ #003 Step 3: NaNms
      ✔ #004 Step 4: NaNms

This is the multi-reporter configuration:

{
    "reporterEnabled": "mocha-jenkins-reporter, @mochajs/json-file-reporter",
    "mochaJenkinsReporterReporterOptions": {
        "junit_report_path": "test-results.xml",
        "junit_report_name": "Tests",
        "junit_report_stack": "1"
    },
    "mochajsJsonFileReporterReporterOptions": {
        "output": "test-results.json"
    }
}

When you use the spec reporter provided by this plugin, you get those NaNms durations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant