Skip to main content

Questions tagged [unit-testing]

Use this tag for code whose main focus is high-performance testing of the actual functional code.

3 votes
2 answers
238 views

Project collects football data from external API. ...
Luca's user avatar
  • 109
3 votes
2 answers
137 views

Please review my_fgets_test() for completeness to exercise the functionality of fgets()-like code. Also suggestions for ...
chux's user avatar
  • 37.3k
7 votes
2 answers
577 views

I created a test that creates the docker image based on a Dockerfile, and test that the web app is running. I did it because sometimes during the development of this project, I broke the creation of ...
Manuelarte's user avatar
4 votes
1 answer
198 views

Intro Two \$n\$-strings \$s = \langle s_1 \ldots s_n \rangle \$ and \$z = \langle z_z \ldots z_n \rangle\$ are considered isomorphic if and only if there exists a bijection \$f\$ such that for all \$...
coderodde's user avatar
  • 34.2k
5 votes
2 answers
121 views

(See the previous and initial iteration.) Intro This time, I decided to pack the genomic data such that 4 nucleotide bases are encoded into a single byte. In other words, ...
coderodde's user avatar
  • 34.2k
4 votes
1 answer
97 views

I like from the C++ unit test framework Catch2 its sections -- much more than the xUnit test fixtures. Therefore I wrote me some macros which mimic the Catch2 sections. This is the first macro heavy ...
tommsch's user avatar
  • 293
4 votes
3 answers
221 views

I have a function which requires all parameters to be positive: ...
Idieh's user avatar
  • 73
5 votes
1 answer
405 views

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 ...
koussay issaoui's user avatar
4 votes
1 answer
181 views

I am making a base test class that bootstraps database Test cases ...
Dimitrios Desyllas's user avatar
2 votes
2 answers
192 views

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 ...
pacmaninbw's user avatar
  • 26.4k
6 votes
1 answer
465 views

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 ...
Olivia A's user avatar
3 votes
1 answer
167 views

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 ...
elehtine's user avatar
  • 165
3 votes
1 answer
81 views

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 ...
michael.zech's user avatar
  • 5,240
1 vote
1 answer
131 views

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 ...
qloq's user avatar
  • 145
3 votes
0 answers
405 views

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 ...
Brian Gonzalez's user avatar

15 30 50 per page
1
2 3 4 5
70