Unit tests with doctest #5
No assignees
Labels
No labels
area/build
area/content
area/editor
area/engine
area/graphics
area/platform
area/repo-wide
area/tests
area/tools
bug
optional
roadmap
size/L
size/M
size/S
No project
No milestone
Blocks
Depends on
#6 Logging through primal::log
UnflavoredMeson/Primal_Plus_Plus
#7 CI on Forgejo Actions for Linux and Windows
UnflavoredMeson/Primal_Plus_Plus
#11 The engine as one shared library
UnflavoredMeson/Primal_Plus_Plus
#12 Math behind math:: with the engine's own storage types
UnflavoredMeson/Primal_Plus_Plus
#14 utl::free_list with stable storage
UnflavoredMeson/Primal_Plus_Plus
#21 Reflection generator PrimalReflectGen
UnflavoredMeson/Primal_Plus_Plus
#2 CMake build for Linux next to MSBuild, warnings as errors, pinned downloads
UnflavoredMeson/Primal_Plus_Plus
Reference
No Branch/Tag specified
Notifications
1 participant
Due date
No due date set.
Reference
UnflavoredMeson/Primal_Plus_Plus#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Every later issue says "tests first where it fits". That needs a test executable on both build systems before the first engine change.
Decided
DownloadDoctesttarget ofUnitTests.vcxproj).UnitTests, with one.cppper area. It needs no window and no GPU. CTest runs it.CHECK, not the engine'sassert(off in Release).benchmark: ...and markeddoctest::skip(). No commas in test names (-tcsplits on them).UnitTests/Data/(PRIMAL_TEST_DATA_DIR).Read first
UnflavoredMeson/Primal#21(the original ticket and what it covered).Steps
UnitTests/withMain.cppand a first test file forutl::vector(Engine/Utilities/Vector.h). Write a test forerase()that you expect to pass, then one for a case you're not sure about.Id.handIOStream.h(blob reader/writer round trips).Done when
x64/Debug/UnitTestsandctest --test-dir build/linux-debugpass on Linux;UnitTests.exepasses on Windows.Claude can help with
Learn
SUBCASEand how it reruns the enclosing test case.