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

Add 'greatest' to the C section #160

Open
ssokolow opened this issue Jun 5, 2021 · 2 comments
Open

Add 'greatest' to the C section #160

ssokolow opened this issue Jun 5, 2021 · 2 comments

Comments

@ssokolow
Copy link

ssokolow commented Jun 5, 2021

The greatest single-file C test framework comes with an awk script (mentioned in the README) that will convert its verbose output into TAP version 13.

(My understanding is that the TAP support is implemented as an external filter because the author is trying to keep greatest.h small.)

If you're including cmocka in your list, I'd highly recommend also including greatest.

cmocka is a complex framework that's, at best, difficult to set up for unsupported compilers. When I reviewed a bunch of test frameworks with the intent to use them for DOS hobby projects using Open Watcom C/C++, greatest was the one I recommended as the best blend of compatibility (just needs C89, no dynamic allocation, builds and runs for a real-mode DOS target), ease of use (single file), and features.

(I've included a screenshot in my review of it, and a code sample which didn't generate it... but only because I wanted the screenshot to show more than one or two tests and I didn't want the code example to be long and repetitive.)

The key takeaway from my review was "For something that works with Open Watcom C/C++ v1.9, the experience is surprisingly reminiscent of Python’s standard library unittest module."

@mblayman
Copy link
Member

mblayman commented Jun 6, 2021

The content on the TAP website is entirely driven by the community. If you'd like to submit a PR to the TAP producers page, I'd be happy to accept it as long as it follows the format of that page.

@ssokolow
Copy link
Author

ssokolow commented Jun 7, 2021

I'll see if I can find time to do that in the next few days.

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

2 participants