Home / Companies / Octopus Deploy / Blog / Post Details
Content Deep Dive

Running unit tests in Jenkins

Blog post from Octopus Deploy

Post Details
Company
Date Published
Author
Matthew Casperson
Word Count
1,990
Company Posts That Month
12
Language
English
Hacker News Points
-
Post removed?
No
Summary

Matthew Casperson's article, published on February 2, 2022, delves into the importance of integrating unit tests into Jenkins projects to verify code changes effectively. The piece provides a comprehensive guide on setting up Jenkins to run unit tests for Java and DotNET Core applications, using popular frameworks such as JUnit for Java and NUnit or MSTest for DotNET Core. It details the installation and configuration of necessary Jenkins plugins like JUnit, MSTest, and xUnit to process test results and generate reports, while also exploring strategies to handle test failures, such as allowing developers to claim responsibility for failed tests. By using example pipelines, the article demonstrates how to ensure Jenkins processes continue even when tests fail, and it highlights the use of the Claim plugin to manage accountability for failed tests. Additionally, it covers options for failing builds when tests fail, providing guidance on using various plugins to achieve this. The article concludes by emphasizing the value of Jenkins as a central source for reporting test results, thus enhancing continuous integration practices within development teams.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.