Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a proper unit-testing system framework #7

Closed
lewissbaker opened this issue Apr 20, 2017 · 3 comments
Closed

Use a proper unit-testing system framework #7

lewissbaker opened this issue Apr 20, 2017 · 3 comments
Assignees

Comments

@lewissbaker
Copy link
Owner

The tests for cppcoro are currently written using plain functions and standard library asserts.
While these are functional, it would be nice to make use of a system that eliminated the boiler-plate code, made it easier to split tests across different source files, provided better reporting of tests and failures, command-line options for running individual tests.

@lewissbaker
Copy link
Owner Author

I have a unit-test framework I've written for a side-project that provides much of this functionality that I could use but I do wonder whether something like the googletest might be more appropriate for an open-source project.

@lewissbaker lewissbaker self-assigned this May 19, 2017
@lewissbaker
Copy link
Owner Author

Another framework worth looking into is https://github.com/onqtam/doctest

@lewissbaker lewissbaker changed the title Add a proper unit-testing system Use a proper unit-testing system framework May 23, 2017
@lewissbaker
Copy link
Owner Author

lewissbaker commented May 23, 2017

Changed to use the doctest framework and split tests across multiple files in 9a620aa.

The doctest framework does potentially have some issues with running checks on multiple threads so it may or may not prove to be suitable for task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant