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

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:

主站蜘蛛池模板: 昭苏县| 博罗县| 曲周县| 出国| 临夏市| 安化县| 桃园县| 咸宁市| 三都| 饶平县| 札达县| 昌吉市| 岢岚县| 凤台县| 炎陵县| 宁化县| 慈溪市| 宾川县| 九龙城区| 广水市| 盐山县| 诸城市| 无为县| 八宿县| 祁东县| 台湾省| 绥中县| 泾阳县| 泗洪县| 前郭尔| 易门县| 葫芦岛市| 留坝县| 旺苍县| 高雄县| 汉中市| 宁国市| 筠连县| 沽源县| 错那县| 来安县|