angular.js - Can angular karma only do single-page application testing?
阿神
阿神 2017-05-15 16:52:17
0
1
653

karma does not specify which file to run (or I don’t know how to do it). Does it mean it can test single-page applications?

阿神
阿神

闭关修行中......

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