CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 04:26:52 GMT
content-type: text/html; charset=utf-8
cf-ray: 96596187682fc1bf-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=97ec6c15-6620-43ec-b4d0-11e6f81e16bd; expires=Mon, 27 Jul 2026 04:26:51 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 4fed2f31-4733-4a16-b136-93923e2e6081
x-worker-origin-response-time: 664000000
x-dns-prefetch-control: off
set-cookie: prov=97ec6c15-6620-43ec-b4d0-11e6f81e16bd; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=ow3vqeqT4C2w4W4fkg2LK_1BvYCHDVd9a2QQdu6Lic4-1753590412-1.0.1.1-Z097e.fpZsUMwAGf6zCudcNllO3MH6xkp8AqyM8hLCSNKf93d4QmWrUqU66UCCkuUwtVsSS2D0i0.JFPZQa8jGdLqtEA36JeDoYNv8WEiDM; path=/; expires=Sun, 27-Jul-25 04:56:52 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=xIRMICtzLqBucAI41qIIQu7vP3VMkAvFlCAyUArLuqI-1753590412119-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'unit-testing' Questions - Code Review Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [unit-testing]
Use this tag for code whose main focus is high-performance testing of the actual functional code.
1,020 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
4
votes
3
answers
161
views
Function to calculate energy where all parameters must be positive
I have a function which requires all parameters to be positive:
...
5
votes
1
answer
364
views
Trying Out DDD : How to enforce data integrity and immutability
I've been transitioning from type-safe programming languages like Dart and Java to Python, and I'm trying to enforce Domain-Driven Design (DDD) principles in a language that naturally leans towards ...
4
votes
1
answer
146
views
Creating Dedicated Database for database test cases (Tests that I need to check the data are written or read sucessfully) in phpunit
I am making a base test class that bootstraps database Test cases
...
2
votes
2
answers
141
views
C++20 Performance Test Code Generator
My previous question about a generic dictionary class for C++ raised some valid concerns. I have made some modifications based on the previous review, but it needs extensive testing and further ...
6
votes
1
answer
438
views
FORTRAN90 test suite for Project Euler
The intent of this test file is to go through each of my Project Euler solutions and see if they:
return the correct answer, and
do so in under 60 seconds (unless expected otherwise).
I am using ...
3
votes
1
answer
140
views
Testing framework with a single assertion macro
I usually use the Catch2 testing framework in my C++ projects. Unlike other frameworks, it has only one core assertion macro for all comparisons. Instead of writing ...
3
votes
1
answer
60
views
Swift: Mocking a REST API-request
I have read the last two days through several tutorials about how to mock a HTTP-request against a REST API.
Finally I made a prototype for applying, what I have understood from the tutorials.
Here's ...
1
vote
1
answer
111
views
Project for reading and printing IPs
It's a small project which consists of Ip class and functions for reading and printing IPs, unit tests for this code, and a driver app. The driver app is just ...
4
votes
0
answers
374
views
Fluent VBA: Two (Almost Three) Years Later
Part 1 - A fluent unit testing framework in VBA: A fluent unit testing framework in VBA
Part 2 - Fluent VBA: One Year Later: Fluent VBA: One Year Later
Two (almost three) years have now passed since I ...
2
votes
0
answers
50
views
Testing PHP CodeIgniter 3 controller with PHPUnit
I want to unit test my PHP website, which uses the outdated framework CodeIgniter 3. CodeIgniter 3 uses the MVC pattern, and each page on the website corresponds to a public method in a controller.
I ...
3
votes
1
answer
98
views
Build a dictionary from a string by the extraction of data from all the pairs <TAG|VAL> contained inside the string and clean string from TAGs
I have written code to manage a string and retrieve from it a dictionary which must contain pairs key-value dependent from the string.
To be more clear I'll show ...
1
vote
1
answer
86
views
Generic Min() for Integer Types (including Boolean)
This is a follow-up to Generic Max() for Integer Types (including Boolean) and An Attempt at Creating Generic Min()/Max() for Fundamental Types.
What's new:
MIN(), ...
8
votes
2
answers
198
views
Generic Max() for Integer Types (including Boolean)
This is a follow-up to An Attempt at Creating Generic min()/max() for Fundamental Types.
What's Changed:
MIN() has been forsaken for the time being.
Mixed types ...
4
votes
3
answers
195
views
Stub-Based Unit Testing 5 Read Routines
Requirements:
Following are the functions I need to test, along with the cases where they can fail:
...
5
votes
1
answer
225
views
Unit Tests for an Arena Allocator
In my last post about the allocator, I received some comments about unit-tests:
The code looks correct on the majority of the cases, I will suggest run valgrind or define a good set of unit tests ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
c# × 242
python × 204
java × 191
javascript × 88
beginner × 58
object-oriented × 58
python-3.x × 58
c++ × 50
mocks × 47
php × 42
junit × 41
ruby × 39
c × 36
algorithm × 33
strings × 33
interview-questions × 32
performance × 32
design-patterns × 25
linked-list × 25
.net × 21
node.js × 21
nunit × 20
moq × 19
dependency-injection × 18
more related tags
Hot Network Questions
- About security concerns using in find -exec vs interactively performing the same task
- How do Japanese people understand the reading of a single kanji with multiple readings in their everyday life?
- Word order for a phrase with a number, adjective and noun
- Automatic drawing of polygon around selected polygons in QGIS
- Do TeX engines support Shavian OpenType fonts?
- Story that taught cryptography in the form of a manga
- Not your ordinary affix riddle
- When was the last time all alive humans stayed on earth?
- What's the difference between an eVisa and ETA travel authorization?
- Is there any verse which says that throughout the Vedas the praise of Shiva is sung?
- Does SZNUD3160 really eliminate the need for diode?
- In Fantastic Four 2025 shouldn't this thing have taken years?
- Not being introduced to the team – should I ask for it?
- How do Francophones hear "ChatGPT"?
- What is the best interpretation of Psalm 6:4? Does "Turn" or "Return" capture the intended meaning?
- How should one pronounce plural French-derived German words?
- Extensions of diagonalizable, respectively multiplicative-type, groups
- Symbols for A.P. Morse's book in Set Theory
- When did the OEIS get even better?
- Anonymizing a submission for double-blind review
- Humans on alien planet get tailed by silent humanoids
- Has the Silver Surfer's clothing (or lack thereof) ever been addressed in the comics?
- Statistics – Linear Inference – What is the moment generating function of non-central t-distribution?
- Is there such a thing as 'aerospace grade software'?