官术网_书友最值得收藏!

Testing our application

Of course, testing is an important skill all developers need to have. We have a complete chapter to talk about testing and discuss TDD, unit testing, and end-to-end testing.

The test command comes with the --watch and the --env flags. Use the watch option to tell the CLI to detect changes in the test folder and execute the tests again.

In order to run tests, the CLI uses Karma, which is a test runner technology that is configured to use Jasmine testing framework to write all our testing files that should be saved into the test folder.

For example, the preceding command will run the app.sec.js file located in the test/unit folder:

au test --watch --env stage

The following is the output that has executed one test successfully:

主站蜘蛛池模板: 盐城市| 长春市| 盈江县| 崇阳县| 永平县| 岳阳县| 长岭县| 松桃| 红原县| 四会市| 德化县| 乃东县| 资阳市| 广平县| 锡林浩特市| 克拉玛依市| 兴宁市| 武邑县| 盐亭县| 汉沽区| 娄底市| 天津市| 阜阳市| 金堂县| 民和| 岳西县| 元阳县| 额尔古纳市| 泗水县| 常州市| 南丹县| 白银市| 东阿县| 抚顺市| 射阳县| 大厂| 遵化市| 疏附县| 山阳县| 鹰潭市| 武平县|