Skip to content

Tests refactoring #38

Closed
Closed

Description

@EndrII

add main test executable - and every test must be implemented in different functions.

use ctest framework see https://cmake.org/cmake/help/book/mastering-cmake/chapter/Testing%20With%20CMake%20and%20CTest.html

Activity

  1. added theissue type on Nov 12, 2026
  2. QuasarAppCI commented on Nov 12, 2026

    @QuasarAppCI
    Member

    Task 38: Tests refactoring - work plan (branch: task_38)

    • Create branch task_38 from main
    • Refactor tests/test_OpenSimplex2F.c: main() becomes the main test executable, every test is implemented in its own function (test_noise2, test_noise3, test_noise4)
    • Use the CTest framework: enable_testing() + add_test() per test (replaces the custom deployTest/test targets)
    • Update CMakeLists.txt and tests/CMakeLists.txt
    • Update CI workflow (the test target now runs ctest)
    • Build locally and run ctest - verify all tests pass
    • Push task_38, open PR, set label waiting-for-review
  3. QuasarAppCI commented on Nov 12, 2026

    @QuasarAppCI
    Member

    Task 38: Tests refactoring - work plan (branch: task_38)

    • Create branch task_38 from main
    • Refactor tests/test_OpenSimplex2F.c: main() becomes the main test executable, every test is implemented in its own function (test_noise2, test_noise3, test_noise4)
    • Use the CTest framework: enable_testing() + add_test() per test (replaces the custom deployTest/test targets)
    • Update CMakeLists.txt and tests/CMakeLists.txt
    • Update CI workflow (the test target now runs ctest)
    • Build locally and run ctest - verify all tests pass (3/3 Passed, ctest -R single test verified, Makefile path verified)
    • Push task_38, open PR Tests refactoring: main test executable + CTest framework (issue 38) #39, set label waiting-for-review

    PR: #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions