angular.js - angular karma是只能做单页面应用测试吗?
阿神
阿神 2017-05-15 16:52:17
0
1
598

karma 并没有指定运行哪个文件(还是说我不会),是指能做单页面应用测试吗?

阿神
阿神

闭关修行中......

reply all(1)
刘奇

First of allAngularJSIt is very suitable for single-page applications, but it does not mean that karma can only test single-page applications, and can also test non-single-page applications.

  • unit test
    When karma is testing, it will first create a karma configuration file, which contains all the code needed for unit testing, as well as the test code; therefore, although the file is not specified, it is actually included, and you want to test the application For that part of the function, write the function to be tested in the test code.
  • e2e (end-to-end testing)
    Karma's end-to-end testing requires the use of the ng-scenario framework, which runs on the server and does not need to reference all library codes.
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!