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

New Post: Code Coverage for AMD Modules

$
0
0
Thanks mmanela.. I understand the limitation..

I notice that it does work as shown in your source code examples \Facts.Integration\JS\Code\RequireJS\all.tests.qunit.js.. so it appears, coverage does work for standard amd modules with qunit tests..

Is there an alternative technique for now? I can see that If I don't need to do dependency injection aka I don't need to 'createContext' (https://bitbucket.org/rasane/chutzpahamdcoveragetest/src/a1f986551277/ChutzpahTest/tests/createContext.js?at=master) specially to pass stubs. The only thing I need to change is to use a way to mock dependencies on the module being tested..

Perhaps there is a better alternative? or I am doing it plain wrong? I am keen to hear recommendations..

Thanks once again..
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>