GithubHelp home page GithubHelp logo

mocha-sonar's People

Contributors

danmasta avatar kampfmoehre avatar

Watchers

 avatar

Forkers

srmaharjan

mocha-sonar's Issues

Ampersand not escaped in exported XML

If a (mocha) test suite title contains an & (ampersand), it is not escaped properly when the reporter generates XML.

As a result Sonarqube is unable to import the XML.

i.e.

Breaks:

it('should set the `username` & `password` from the options', () => {
   ...
});

Vulnerability on old dependencies

Some of the dependencies are vulnerable

npm audit:

minimatch  <3.0.5
Severity: high
minimatch ReDoS vulnerability - https://github.com/advisories/GHSA-f8q6-p94x-37v3
No fix available
node_modules/@danmasta/mocha-sonar/node_modules/minimatch
  mocha  5.1.0 - 9.2.1
  Depends on vulnerable versions of minimatch
  Depends on vulnerable versions of nanoid
  node_modules/@danmasta/mocha-sonar/node_modules/mocha
    @danmasta/mocha-sonar  *
    Depends on vulnerable versions of mocha
    node_modules/@danmasta/mocha-sonar

nanoid  3.0.0 - 3.1.30
Severity: moderate
Exposure of Sensitive Information to an Unauthorized Actor in nanoid - https://github.com/advisories/GHSA-qrpm-p2h7-hrv2
No fix available
node_modules/@danmasta/mocha-sonar/node_modules/nanoid

nanoid is already on v5.0.3, while minimatch's last version is v9.0.3. Both versions come from mocha dependency. Last mocha version is 10.2.0

npm list nanoid:

├─┬ @danmasta/[email protected]
│ └─┬ [email protected]
│   └── [email protected]

npm list minimatch:

├─┬ @danmasta/[email protected]
│ └─┬ [email protected]
│   ├─┬ [email protected]
│   │ └── [email protected] deduped
│   └── [email protected]

Replace testExecutions with coverage?

Hi,

when I run mocha test --reporter @danmasta/mocha-sonar test/**/*.js the xml file starts with <testExecutions version="1"> but based on this spec, sonar expects it to start with <coverage version="1"> instead.

Now, I just started using sonar, so I do not know if this is a new change or not, but it is breaking the scanner :(

Maybe a new option is needed? I don't know 😞

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.