Unit Testing Methods and Practices in C Language

Unit Testing Methods and Practices in C Language

Unit Testing Methods and Practices in C Language In software development, unit testing is an important testing method used to verify the correctness of the smallest testable units in a program (usually functions or modules). This article will introduce unit testing methods and practices in C language, helping basic users understand how to write and … Read more

How to Complete Unit Testing for Embedded Code?

How to Complete Unit Testing for Embedded Code?

Follow+Star Public Account Number, don’t miss out on exciting content Source | Big Orange Crazy Embedded In software development, every change in requirements generally necessitates rewriting code. After code changes, functional testing is required, and of course, unit testing must be performed before functional testing to avoid unverified scenarios after code modifications, which can lead … Read more

New AI Techniques! Boosting C Language Unit Testing Efficiency and Quality!

New AI Techniques! Boosting C Language Unit Testing Efficiency and Quality!

Click the blue text to follow immediately In today’s AI-driven era, the software development process is undergoing unprecedented changes. While cutting-edge AI models like DeepSeek and ChatGPT are widely used for code generation, documentation writing, and requirement analysis, significantly enhancing development efficiency, the field of C language unit testing remains mired in “manual mode”: facing … Read more

MiniTest: A Lightweight C++ Unit Testing Framework

MiniTest: A Lightweight C++ Unit Testing Framework

Click the blue text to follow immediately Introduction MiniTest is a lightweight C++ unit testing framework that provides assertion testing, parameterized testing, grouped testing, performance testing, and Mock (mock objects), suitable for the unit testing needs of small projects. Features of this framework: Lightweight: No third-party dependencies, suitable for embedded systems, CLI tools, etc. Easy … Read more

28 Common Python API Automation Testing Scripts

28 Common Python API Automation Testing Scripts

Practical Guide to Python API Automation Testing Scripts 1. Basic HTTP Request Testing 1.1 Basic GET Request Testing Using the Requests Library import requests import unittest class TestGetApi(unittest.TestCase): def test_get_request(self): # Send GET request response = requests.get('https://jsonplaceholder.typicode.com/posts/1') # Assert status code is 200 self.assertEqual(response.status_code, 200) # Assert response contains expected keys data = response.json() self.assertIn('id', … Read more

CLion Tutorial – Boost.Test

CLion Tutorial - Boost.Test

Boost unit testing framework (Boost.Test) is part of the Boost library. It is a fully-featured and extensible framework with various assertion macros, XML output, and more. Boost.Test itself does not include mocking capabilities but can be used in conjunction with standalone mocking frameworks (like gmock). If you are not familiar with Boost.Test, here is a … Read more

Best Practices for Unit Testing in Android MVI Architecture

Best Practices for Unit Testing in Android MVI Architecture

/ Today’s Tech News / Recently, Tesla released a new demonstration video of its humanoid robot “Optimus Gen2” on X. Compared to the earlier prototype, Optimus Gen2 seems to have made significant improvements in weight, flexibility, and other areas. Analysts believe that at the current rate of iteration, the Optimus robot may soon replace humans … Read more

PyQt UI Unit Testing Framework Ideas

PyQt UI Unit Testing Framework Ideas

Column ❈ Ding Guo, author of the Python Chinese community. Interested in django, pyqt, opencv, tornado. GitHub: https://github.com/lidingke ❈ 1. Idea PyQt is a quite flexible UI framework, but the Python version of Qt has never had a good unit testing tool for UI. The logic layer in PyQt is connected using signals and slots. … Read more

CLion Unit Testing Tutorial

CLion Unit Testing Tutorial

This tutorial provides an overview of unit testing methods and discusses the four testing frameworks supported by CLion: Google Test, Boost.Test, Catch2, and Doctest. Unit Testing Basics Unit tests are designed to check individual units of source code separately. Here, a "unit" refers to the smallest part of code that can be tested independently, such … Read more

Quick Start Guide to Pytest Testing Framework in 5 Minutes

Quick Start Guide to Pytest Testing Framework in 5 Minutes

This article will divide the content about Pytest into two parts. The first part mainly introduces the concepts of pytest and its functional components, while the second part will focus on practical applications of pytest in a web project. Why Unit Testing is Important Many Python users may have experienced the need to test whether … Read more