Hi,
I was very reluctant to open this issue -- it's more of a question really -- but I cannot find an answer to it anywhere. And it seems such a basic thing that I'm sure I'm just missing something in here...
If I have a node project with a couple of .js files. And I have created a single test file which tests a couple of functions from one file only.
The test is a jasmine test, inside test directory, which is run by doing jasmine test. I get my 2 tests, 2 assertions, all ok.
Now I want to get coverage data for my code.
I do istanbul cover jasmine-node -- test and I get coverage results only for the .js file I tested, i.e., I'm getting 83% coverage when in fact there's one file in there that's not even being tested.
So, am I doing this wrong or do I have the wrong expectation here?
Is there a way to get istanbul cover to give me results which reflect also the files which weren't tested?
Many thanks,
L.
Hi,
I was very reluctant to open this issue -- it's more of a question really -- but I cannot find an answer to it anywhere. And it seems such a basic thing that I'm sure I'm just missing something in here...
If I have a node project with a couple of .js files. And I have created a single test file which tests a couple of functions from one file only.
The test is a jasmine test, inside
testdirectory, which is run by doingjasmine test. I get my 2 tests, 2 assertions, all ok.Now I want to get coverage data for my code.
I do
istanbul cover jasmine-node -- testand I get coverage results only for the .js file I tested, i.e., I'm getting 83% coverage when in fact there's one file in there that's not even being tested.So, am I doing this wrong or do I have the wrong expectation here?
Is there a way to get
istanbul coverto give me results which reflect also the files which weren't tested?Many thanks,
L.