danmasta / mocha-sonar Goto Github PK
View Code? Open in Web Editor NEWSonarQube XML reporter for Mocha
License: MIT License
SonarQube XML reporter for Mocha
License: MIT License
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', () => {
...
});
"silent": "true"
works properly, but "silent": true
does not.
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]
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 😞
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.