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:
推薦閱讀
- Web安全防護指南:基礎篇
- 網絡協議工程
- 物聯網安全:理論、實踐與創新
- Hands-On Chatbot Development with Alexa Skills and Amazon Lex
- Learning QGIS 2.0
- Mastering JavaFX 10
- 雷達饋線技術
- Yii Application Development Cookbook(Second Edition)
- Spring 5.0 Projects
- Working with Legacy Systems
- React Cookbook
- 物聯網頂層設計與關鍵技術
- INSTANT LinkedIn Customization How-to
- 深入理解Nginx:模塊開發與架構解析
- Microsoft Power Platform Enterprise Architecture