Get help with testing, discuss unit testing strategies etc.


Post by laura »

Hi,
we use Siesta for Ext.js.
Is there a way to detect if a test is currently running with code coverage? We are looking for a way to add tests based on content changes that won't work in case of coverage generation because of the coverage injections

Thanks for help


Post by nickolay »

Hi,

When code is is running with code coverage instrumentation, the window.__coverage__ global is created. You should be able to check for its presence.


Post by laura »

That works fine, thank you!


Post Reply