- DevOps for Serverless Applications
- Shashikant Bangera
- 131字
- 2021-07-16 17:35:38
Unit testing a deployed application
Once the application is deployed, we can run the unit test on it. In order to try out some unit tests, I have created three unit tests in the test folder, and we will be testing them using Mocha. Let's create another job in Jenkins for setting up unit testing. Again, it would be a freestyle job in Jenkins, as shown in the following screenshot:

We add the Git repository path to Jenkins where our test cases are residing, as shown in the following screenshot:

Then we add an execute shell to run the unit test using Mocha, as shown in the following screenshot:

As you can see in the following screenshot, our test cases are passing, which proves that our functions are running perfectly fine:

推薦閱讀
- 操作系統實用教程(Linux版)
- BPEL and Java Cookbook
- 操作系統基礎與實踐:基于openEuler平臺
- 高性能Linux服務器構建實戰:運維監控、性能調優與集群應用
- 構建可擴展分布式系統:方法與實踐
- Linux集群和自動化運維
- 計算機系統開發與優化實戰
- 8051軟核處理器設計實戰
- 嵌入式實時操作系統μC/OS原理與實踐
- INSTANT Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
- Hands-On UX Design for Developers
- Kali Linux高級滲透測試
- Red Hat Enterprise Linux 6.4網絡操作系統詳解
- iOS 10 開發指南
- Linux網絡操作系統項目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)