Unit testing and continuous integration04:33

  • 0
Published on December 17, 2017

The price of the course is reduced from $50 to $10. Here is the link to order the course

In Indian Rupees the cost is Rs.650. To pay in INR, please contact [email protected]

Here is the link to the course on Udemy

Please use the coupon code below to get 20% discount on Udemy
KudVenkat20

Unit tests are part of Continuous Integration pipeline. This is the simplified view of the Continuous Integration pipeline. So here is how it works, when ever there is a change request or enhancement or a bug. The developer implements the code chages required on his local machine. Depending on the change being implemented, the developer may also change the existing unit tests or add new ones. The developer will then run the unit tests on his local machine to make sure they pass. Get the code reviewed by a senior or a fellow developer and quickly manually test the changes.

At this point, the developer is ready to check-in his changes into the source control repository. When the developer intiaties a check in, there is component called build agent in the continuous integration pipeline, that automatically builds the solution and runs all the tests. If all the tests pass, the developer changes are committed to the source control. If any of the automated tests fail, the changes are rejeceted and the developer has the opportunity to fix those failed tests.

So in short, the automated unit tests, that are part of the Continuous Integration pipeline, can prevent, breaking changes from being checked into source control repository.

Enjoyed this video?
"No Thanks. Please Close This Box!"