cegonse / cest

C++/C unit testing framework focused on simplicity and readability
https://cestframework.com/
MIT License
12 stars 1 forks source link

Test cases could be run as child processes #38

Open jorsanpe opened 4 years ago

jorsanpe commented 4 years ago

This is a suggestion for a possible enhancement. Running each test case as a child process could have a number of advantages:

This feature has portability concerns. If Cest is intended to be as portable as possible, then some mechanism should be in place to allow platform independent process spawning.

cegonse commented 4 years ago

Potentially related to #41

cegonse commented 1 week ago

This will be solved as soon as version v2 comes out. Now you can use cest-runner to run all test suites, which are run inside a separate sub-process. Then, if a single test raises a signal and the execution of other tests is recoverable through longjmp it will be captured by the runner:

image

And if the signal is raised at the top level and is not recoverable, the runner will mark the whole suite as failed:

image