Quantcast
Channel: Chutzpah - A JavaScript Test Runner
Viewing all articles
Browse latest Browse all 1864

New Post: Code Coverage for AMD Modules

$
0
0
Hi,

I have trouble getting Chutzpah report code coverage for 'require.js' AMD modules..

To demonstrate the problem here is a simple test project: https://bitbucket.org/rasane/chutzpahamdcoveragetest/ and help..

I can: run the command, from the tests folder:
....\packages\Chutzpah.2.4.1\tools\chutzpah.console.exe AMDTests.html /coverage
and get success/failure of tests.. but i cannot get coverage reports..

IF I try using the js file to get coverage, it reports an error..
....\packages\Chutzpah.2.4.1\tools\chutzpah.console.exe AMDTests.js /coverage
reported error:
JS Error: Timeout occured when executing test file

But If I try a non AMD Module in the solution, it works
....\packages\Chutzpah.2.4.1\tools\chutzpah.console.exe nonAMDSample.js /coverage

Tests complete: 1
Code Coverage Results Average Coverage: 100%
 100% for C:\Temp\deleteme\vs2012\testRest\Chutz
I would like the html to report a similar report or the js file with AMD module in it, to report coverage..

Any ideas?
Thanks for your time...
rasane

Viewing all articles
Browse latest Browse all 1864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>