jhnns / rewire

Easy monkey-patching for node.js unit tests
MIT License
3.08k stars 128 forks source link

Rewire is great, but it doesn't work for SonarQube #209

Closed ANTGOMEZ closed 1 year ago

ANTGOMEZ commented 1 year ago

First, I love Rewire, makes things real easy.

However, we started using SonarQube for quality gates, and all tests that use Rewire are not recognized as covered by SonarQube.

When I rewrote the tests without using Rewire, the tests were recognized again by SonarQube.

Could there be a Rewire config setting or something that would alleviate this?

jhnns commented 1 year ago

Thank you for your kind words. I have no idea what SonarQube is and why it doesn't work.