tntim96 / JSCover

JSCover is a JavaScript Code Coverage Tool that measures line, branch and function coverage
GNU General Public License v2.0
399 stars 84 forks source link

Question about using --only-instrument-reg #252

Closed guru-carmatec closed 7 years ago

guru-carmatec commented 7 years ago

Hi,

I have to instrument one file inside a directory and all files inside another directory excluding 2 subdirectories inside it. Below is my folder structure.

profile/

I tried searching for an example for --only-instrument-reg, but couldn't find any.

Can anyone please help me on how to write a regular expression to achieve the above?

Thanks in advance for anyhelp.

Thank You.

tntim96 commented 7 years ago

There is an option, -regex-test, specifically to test your regular expressions. Try something like:

java -jar JSCover-all.jar -regex-test "/a.*" "/ab"