Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Jenkins

You're reading from  Mastering Jenkins

Product type Book
Published in Oct 2015
Publisher Packt
ISBN-13 9781784390891
Pages 334 pages
Edition 1st Edition
Languages
Authors (2):
jmcallister - jmcallister -
Jonathan McAllister Jonathan McAllister
Profile icon Jonathan McAllister
View More author details

Table of Contents (18) Chapters

Mastering Jenkins
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Setup and Configuration of Jenkins 2. Distributed Builds – Master/Slave Mode 3. Creating Views and Jobs in Jenkins 4. Managing Views and Jobs in Jenkins 5. Advanced Automated Testing 6. Software Deployments and Delivery 7. Build Pipelines 8. Continuous Practices 9. Integrating Jenkins with Other Technologies 10. Extending Jenkins Index

Unit tests in Jenkins through MSTest


As we mentioned earlier, unit testing provides developers with a formalized way to write code documentation, and encourages better coding practices. Unit testing is simply breaking down the functionality of a program into unit-testable behaviors, which can be repeatedly executed to verify the behavior of the code in response to standards, boundaries, and data inputs.

TDD, Test Driven Development or TFD, Test First Development, as we mentioned earlier, is a development technique where developers repeat a process of three activities, which are tightly interwoven.

  • Testing: Creating automated tests

  • Coding: Writing minimal code to just pass those tests

  • Design: Refactoring code to improve internal implementation without changing the external contract

At the time of writing, there are numerous Unit testing frameworks available. The most notable are MSTest, JUnit, CUnit, and NUnit, which are available for .NET, JAVA, Linux, and Windows respectively. In the next...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}