https://github.com/tony-go/cmake-test-fixtures
Try `FIXTURES_REQUIRED`, `FIXTURES_SETUP` & `FIXTURES_CLEANUP`
https://github.com/tony-go/cmake-test-fixtures
Last synced: 3 months ago
JSON representation
Try `FIXTURES_REQUIRED`, `FIXTURES_SETUP` & `FIXTURES_CLEANUP`
- Host: GitHub
- URL: https://github.com/tony-go/cmake-test-fixtures
- Owner: tony-go
- Created: 2023-05-31T15:07:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-05T19:49:21.000Z (almost 2 years ago)
- Last Synced: 2025-02-04T16:17:07.805Z (5 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# CMake test fixtures
## How to run
```sh
$ make
```On the end, it should output:
```text
ctest --test-dir dist --output-on-failure -j 4
Internal ctest changing into directory: /Users/tonygorez/learn/cmake/test-fixture/dist
Test project /Users/tonygorez/learn/cmake/test-fixture/dist
Start 1: start_server
1/4 Test #1: start_server ..................... Passed 1.07 sec
Start 2: my_test_case
Start 3: my_test_case_2
2/4 Test #2: my_test_case ..................... Passed 0.10 sec
3/4 Test #3: my_test_case_2 ................... Passed 0.12 sec
Start 4: stop_server
4/4 Test #4: stop_server ...................... Passed 0.01 sec100% tests passed, 0 tests failed out of 4
Total Test time (real) = 1.21 sec
```