- 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:

推薦閱讀
- pcDuino開發實戰
- Mobile-first Bootstrap
- Hands-On DevOps with Vagrant
- 精解Windows 8
- Instant Handlebars.js
- 混沌工程實戰:手把手教你實現系統穩定性
- Windows Phone應用程序開發
- RESS Essentials
- 移動應用UI設計模式(第2版)
- Microsoft Operations Management Suite Cookbook
- Joomla! 3 Template Essentials
- Windows 7應用入門與技巧
- 寫給架構師的Linux實踐:設計并實現基于Linux的IT解決方案
- Azure Resource Manager Templates Quick Start Guide
- Android NDK Beginner's Guide