CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 11:59:51 GMT
content-type: text/html; charset=utf-8
content-encoding: gzip
cf-ray: 965bf9173e01c17c-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=90e39bd4-9817-42a4-ac8b-fdd2a33118ed; expires=Mon, 27 Jul 2026 11:59:51 GMT; domain=.stackexchange.com; path=/; secure; httponly
set-cookie: prov=90e39bd4-9817-42a4-ac8b-fdd2a33118ed; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=tXf4__d.yLwJenSOGvhLQIWx7g.UKBG7bmPRwTfpGus-1753617591-1.0.1.1-ExUzyyvl_4F2na0tsUJTT_dcAASbZI69pEeaSrAijKa5uTTXSSVcv2_5LEdJ_1lr5crbxFyENqmNu4hCWJHES88ESmpR9F02pB1opcT6oOU; path=/; expires=Sun, 27-Jul-25 12:29:51 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=Dx0IzvUPLca092NX_X7TYmTrLtURpVAAtiPl1YqZ1wo-1753617591549-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
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: c84f2dab-2666-44a0-bf57-ce50ffb9733f
x-worker-origin-response-time: 599000000
x-dns-prefetch-control: off
server: cloudflare
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
- Kepler's first law proof error - can anyone help me see what the error is?
- In Fantastic Four 2025 shouldn't this thing have taken years?
- When did the OEIS get even better?
- Why is 0.0 printed as 0.00001 when rounding upward?
- When was the last time all humans were on the ground not in the air?
- About security concerns using in find -exec vs interactively performing the same task
- Will this work as an XOR gate?
- Humans on alien planet get tailed by silent humanoids
- The Russian president is struggling to pass a law now. Then, how much power does Kremlin have to initiate a congressional decision?
- Can I switch the stand on my Apple Studio Display?
- Are classified documents subject to a subpoena in discovery?
- Shared-Memory Queue Implementation in C
- What is the meaning of 'Tel.......,qui......'
- Civilian airplanes with inside fuselage jet engines
- Why aren't there baleen whales at about the size of a dolphin?
- Did Denmark report that 64% Palestinian refugees from 1992 received serious fines or jail time?
- Meaning of 芭蕉 in Tang age
- Are you required to protect trade secrets revealed to you even if you didn't sign an NDA?
- Can expanding foam provide interior strength for a large model?
- About Harp Pedaling for a Pentatonic Glissando
- Existence of Jordan curves between a compact and an open set
- How can I turn the text in a PNG file back into text layer?
- "I met a monk and philosopher." How many people did I meet?
- What does "enter the hold at arden" mean