简体   繁体   中英

karma: chrome browser idle, no test executes

I am facing a similar problem. I am testing a sample Angular(1.6.3)app When i run karma start or npm test, it runs the karma and shows no result in command prompt or in browser. I am able to see jasmine result on clicking DEBUG button in browser. Problem is that app is not displayed in browser and test is not shown getting executed in that brower. I also tried chrome-headless, still no test executes. Any help !!

In your karma.conf.js , change autoWatch: false to autoWatch: true , then run ng test again. Or you could hit the DEBUG button. Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM