Please follow me on Twitter to get more updates on memes, tech news, devops/developer content!
/ codedoge4
#azure #mocha #testing
This is part 2 of the series covering Azure #Devops #Custom #Extensions or #tasks
Here we cover how to handle unit testing using Mocha.
The next video in the series will cover how to use #powershell inside extensions instead of using #nodejs and #typescript
Part 0 : Installing dependencies - • Custom Task Extensions - Installing D...
Part 1 : Creating Custom Build & Release extension - • Custom Task Extensions - Creating a n...
Part 2 : Unit testing with Mocha (This videos is Part 2) - • Custom Task Extensions - Using Mocha ...
Part 3: Powershell tasks
Github Links : https://github.com/jc566/Youtube_Solu...
Important Time Stamps :
00:00 - Intro & announcements
01:07 - Explain what this videos going to cover using Mocha & unit testing
01:22 - Install Mocha
02:03 - Install sync-request
02:16 - Install types mocha
02:30 - Create "tests" directory
02:57 - Create _suite.ts file
03:20 - Copy/paste the base schema for _suite.ts. Github link below after time stamps
03:59 - Create success.ts and failure.ts files
04:20 - Copy/paste the schema for success.ts. Github link below after time stamps
04:25 - Copy/paste the schema for failure.ts. Github link below after time stamps
04:52 - Copy/paste updates for _suite.ts. Github link below after time stamps
05:54 - Compile Typescript files
06:23 - Invoke the mocha command to run tests. We did hit an error however.
07:01 - Fixing the error from initial mocha command run.
07:52 - Forcing a failure condition and little more explanation on the unit testing
09:23 - Whats coming up in the next video installments
09:59 - Like and subscribe and do follow on Twitter / codedoge4
Important Links :
1) #Microsoft #Documentation - https://docs.microsoft.com/en-us/azur...
2) _suite.ts schema - https://github.com/jc566/Youtube_Solu...
3) _suite.ts Completed - https://github.com/jc566/Youtube_Solu...
4) success.ts schema - https://github.com/jc566/Youtube_Solu...
5) failure.ts schema - https://github.com/jc566/Youtube_Solu...
Please ignore the following :
unit testing mocha unit test build task release task testing task cicd devops pipeline build pipeline release pipeline custom task custom extension vsts task repo git tfs tfvc repository yaml yml xaml xml tfs build tfvc build build extension release extension build and release task build and release extension