tornaia / karma-sonarqube-unit-reporter

A Karma plugin. Unit tests execution report for SonarQube/Generic Coverage Plugin
MIT License
33 stars 28 forks source link

Add missing file by description warning, wildcards & regex option #55

Closed Willem1987 closed 4 years ago

Willem1987 commented 4 years ago

We ran into an issue with karma using test/unit/*/.js and trying to use testFilePattern: '.spec.js', from the example.

We had 1 file not called .spec.js and the npm test fails with: Cannot read property 'value' of undefined

So i think a warning for an unfound nextPath could be helpful for finding misconfiguration.

Also i tried to add wildcards. A single * can be used for non-folder-separator characters and a ** would work with subfolders. Added tests for wildcards

tornaia commented 4 years ago

Merges and new version (0.0.23) is released.