-
Notifications
You must be signed in to change notification settings - Fork 1
ncurse based test framework
License
blunderer/cobaye
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# # COBAYE - Simple test framework # author: Tristan Lelong <tristan.lelong@blunderer.org> # Testing is an important task, but can be quite tedious. Having a test framework to rely on can be useful and helps to focus on test efficency. Cobaye is a test framework tahet can run thru a telnet / serial connection. It offers a batch mode to run automatic test sequences, security, report generation... The test API is extremely simple: write your test in the 'tests' directory. The tests must be declared using macro cobaye_declare_test with the struct cobaye_test that describe your test: struct cobaye_test my_test = { .name = "mytest", .descr = "a simple test description", .main = my_test_main, .flags = TST_NO_USER, }; cobaye_declare_test(my_test); Then, the build system will automatically compile and embed your test case. At run the test framework, will generate a list of all compiled tests and when running a test, it will fork to run the test. cobaye features are: - standard stdout to display logs or cobaye_printf for auto flush - standard stdin to prompt user for input - resources embedded as blob - automatic report generation - batch mode (for auto tests only) - build flags customization for tests - standalone test build for easy debugging outside of test framework - handling of test sequences and running one test multiple times For more info, check out the dummy.c test example and refer to documentation.
About
ncurse based test framework
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published