How can I automate both E2E and unit tests with Yeoman & AngularJS?

后端 未结 4 1522
旧巷少年郎
旧巷少年郎 2021-02-01 02:54

I\'m using Yeoman and generator-angular to manage AngularJS apps, but I\'m having trouble with automated testing.

Running grunt test will run unit tests onc

4条回答
  •  孤城傲影
    2021-02-01 03:35

    Within the karma.conf.js file (approx line:38) find autoWatch = false; and change it to true.

    Now if you run grunt karma:unit you will find that it leaves the test server running and any changes to project files immediately run the tests again.

提交回复
热议问题