Skip to content

mocha-junit-reporter programatically #56

@edniemeyer

Description

@edniemeyer

I'm trying to use mocha-junit-reporter programmatically but it doesn't seem to work. My code below:

var reporterOptions = {
        "mocha-junit-reporter": {
            reporterOptions: {
                mochaFile: "./test-reports/unit-test-report.xml"
            }
        },
        spec: "-",
    };

mocha({
            reporter: "mocha-multi",
            reporterOptions: reporterOptions
  
        })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions