Skip to content

Commit

Permalink
test: organize tests (#145)
Browse files Browse the repository at this point in the history
* test: remove unused section creation test

* test: rename test modules

* test: remove test names, use file names instead

* test: order tests alphabetically

* test: organize sections in `test/assert_execute_process.cmake`

* test: organize sections in `test/assert.cmake`
  • Loading branch information
threeal authored Jul 4, 2024
1 parent 983c86f commit 23ea536
Show file tree
Hide file tree
Showing 10 changed files with 286 additions and 238 deletions.
18 changes: 6 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,12 @@ include(cmake/Assertion.cmake)
if(ASSERT_ENABLE_TESTS)
enable_testing()

assertion_add_test(
test/IncludeOtherModules.cmake NAME "inclusion of other modules")

assertion_add_test(test/TestCreation.cmake NAME "test creation")
assertion_add_test(test/Fail.cmake NAME "failure invocation")
assertion_add_test(test/Assert.cmake NAME "condition assertions")
assertion_add_test(test/AssertFatalError.cmake NAME "fatal error assertions")

assertion_add_test(
test/AssertExecuteProcess.cmake NAME "execute process assertions")

assertion_add_test(test/SectionCreation.cmake NAME "section creation")
assertion_add_test(test/assert_execute_process.cmake)
assertion_add_test(test/assert_fatal_error.cmake)
assertion_add_test(test/assert.cmake)
assertion_add_test(test/assertion_add_test.cmake)
assertion_add_test(test/fail.cmake)
assertion_add_test(test/include.cmake)
endif()

if(ASSERT_ENABLE_INSTALL)
Expand Down
155 changes: 0 additions & 155 deletions test/Assert.cmake

This file was deleted.

55 changes: 0 additions & 55 deletions test/AssertExecuteProcess.cmake

This file was deleted.

16 changes: 0 additions & 16 deletions test/SectionCreation.cmake

This file was deleted.

Loading

0 comments on commit 23ea536

Please sign in to comment.