---
title: "#unittest articles | Hashnode"
description: "UNIT TESTING is a type of software testing where individual units or components of a software are tested."
url: "https://hashnode.com/tag/unittest"
---

Tag

# #unittest

12 posts · 4 followers

[Powerduck](https://hashnode.com/@powerduck) · [Oct 25](https://hashnode.com/posts/agent-relaxes-assertion-to-go-green/6ade58391c5f079cfebaf804)

### [The agent widened the catch block until the red test went green, so the suite stopped measuring the real failure](https://blogs.powerduck.com/agent-relaxes-assertion-to-go-green?utm_source=hashnode&utm_medium=feed)

Faced with a red test, the agent broadens the exception, loosens the assertion, or skips the case until the light goes green. Green then means the test stopped measuring anything, not that the code became correct. Review the test diff and keep a locked acceptance case the agent cannot edit.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/agent-relaxes-assertion-to-go-green?utm_source=hashnode&utm_medium=feed)

[recca0120](https://hashnode.com/@recca0120) · [Apr 20](https://hashnode.com/posts/python-mock-imported-function/69e5b55af0aeeefe626cf4a2)

### [Python Mock Pitfall: Patch Where It Is Used, Not Where It Is Defined](https://recca0120.hashnode.dev/python-mock-imported-function?utm_source=hashnode&utm_medium=feed)

The most common Python mock mistake: patching utils.sum when the test still runs the real function. When you do \`from utils import sum\`, the importing module gets its own binding. Patch the importing module's namespace, not the original definition.

3 min read · [recca0120.hashnode.dev](https://recca0120.hashnode.dev/python-mock-imported-function?utm_source=hashnode&utm_medium=feed)

[Morteza Jangjoo](https://hashnode.com/@Jangjoo) · [Oct 21, 2025](https://hashnode.com/posts/a-complete-guide-to-writing-unit-tests-in-net-core-with-xunit-moq/68f6f355a5a69aadea4560b2)

### [A Complete Guide to Writing Unit Tests in .NET Core (with xUnit + Moq)](https://jangjoo.hashnode.dev/a-complete-guide-to-writing-unit-tests-in-net-core-with-xunit-moq?utm_source=hashnode&utm_medium=feed)

A Complete Guide to Writing Unit Tests in .NET Core (with xUnit + Moq)

3 min read · [jangjoo.hashnode.dev](https://jangjoo.hashnode.dev/a-complete-guide-to-writing-unit-tests-in-net-core-with-xunit-moq?utm_source=hashnode&utm_medium=feed)

[wuzhiguocarter](https://hashnode.com/@wuzhiguocarter) · [Aug 25, 2024](https://hashnode.com/posts/google-test/66cb5506f7e624765754bc77)

### [Google Test：从入门到高手](https://blog.wuzhiguo.tech/google-test?utm_source=hashnode&utm_medium=feed)

全面介绍Google Test的学习路径，从基础安装到高级技巧，提升C++单元测试水平。

1 min read · [blog.wuzhiguo.tech](https://blog.wuzhiguo.tech/google-test?utm_source=hashnode&utm_medium=feed)

[wuzhiguocarter](https://hashnode.com/@wuzhiguocarter) · [Aug 7, 2024](https://hashnode.com/posts/google-test-table-driven-test-best-practice/66b384ab7cd605f8016d8ef0)

### [Google Test表格驱动测试最佳实践案例](https://blog.wuzhiguo.tech/google-test-table-driven-test-best-practice?utm_source=hashnode&utm_medium=feed)

Google Test表格驱动测试最佳实践，提高测试代码可读性、可维护性和扩展性，使用自定义比较函数明确比较逻辑。

5 min read · [blog.wuzhiguo.tech](https://blog.wuzhiguo.tech/google-test-table-driven-test-best-practice?utm_source=hashnode&utm_medium=feed)

[Jonathan Ifeanyi](https://hashnode.com/@Jonaz) · [Oct 26, 2023](https://hashnode.com/posts/best-practices-for-writing-effective-unit-tests-in-python/653ad95224016158e3599df7)

### [Best Practices for Writing Effective Unit Tests in Python](https://jonaz.hashnode.dev/best-practices-for-writing-effective-unit-tests-in-python?utm_source=hashnode&utm_medium=feed)

Master Python unit testing and TDD for code quality. Your comprehensive guide to effective testing practices for beginners.

11 min read · [jonaz.hashnode.dev](https://jonaz.hashnode.dev/best-practices-for-writing-effective-unit-tests-in-python?utm_source=hashnode&utm_medium=feed)

[Ananya Gupta](https://hashnode.com/@blogsbyananya) · [Oct 4, 2023](https://hashnode.com/posts/building-a-python-boilerplate-function-with-unit-testing/651cf7754bb59a534a7fe6c6)

### [Building a Python Boilerplate Function with Unit Testing](https://blogsbyananya.com/building-a-python-boilerplate-function-with-unit-testing?utm_source=hashnode&utm_medium=feed)

When it comes to programming, we often find ourselves writing the same code snippets over and over again. These repetitive pieces of code are known as “boilerplate.” In this mini project, we’ll explore the boilerplate concept by creating a Python fun...

6 min read · [blogsbyananya.com](https://blogsbyananya.com/building-a-python-boilerplate-function-with-unit-testing?utm_source=hashnode&utm_medium=feed)

[Jared Atandi](https://hashnode.com/@JayJ) · [Oct 20, 2022](https://hashnode.com/posts/testing-your-code-the-easy-way/6351b6e5dffea8d32760376b)

### [Testing your code the easy way](https://jaredatandi.hashnode.dev/testing-your-code-the-easy-way?utm_source=hashnode&utm_medium=feed)

Python testing is critical for software quality. Without tests, your code is prone to bugs and errors that can impact user experience.

5 min read · [jaredatandi.hashnode.dev](https://jaredatandi.hashnode.dev/testing-your-code-the-easy-way?utm_source=hashnode&utm_medium=feed)

[Sunny Singh](https://hashnode.com/@devsunnysingh) · [Jul 31, 2022](https://hashnode.com/posts/writing-first-angular-test-and-more/62e5e167430bd1d04a842afc)

### [Writing first Angular test and more](https://98sunny.hashnode.dev/writing-first-angular-test-and-more?utm_source=hashnode&utm_medium=feed)

Understanding how to write Angular test and making the basics strong to further go in depth into Angular testing

7 min read · [98sunny.hashnode.dev](https://98sunny.hashnode.dev/writing-first-angular-test-and-more?utm_source=hashnode&utm_medium=feed)

[Sunny Singh](https://hashnode.com/@devsunnysingh) · [Jul 30, 2022](https://hashnode.com/posts/writing-first-unit-test-in-jasmine/62e4df19430bd1d04a840660)

### [Writing First Unit test in Jasmine](https://98sunny.hashnode.dev/writing-first-unit-test-in-jasmine?utm_source=hashnode&utm_medium=feed)

Notes on various terminologies and step by step writing our first test code

6 min read · [98sunny.hashnode.dev](https://98sunny.hashnode.dev/writing-first-unit-test-in-jasmine?utm_source=hashnode&utm_medium=feed)
