havardt / eztest Goto Github PK
View Code? Open in Web Editor NEWAn easy to use unit testing framework written in, and created for, the C language.
License: MIT License
An easy to use unit testing framework written in, and created for, the C language.
License: MIT License
Currently, there is a large usage of underscores to indicate that the function should not be used by the user. This is a problem as functions starting with an underscore are reserved.
Proposed fix: replace '_' with 'eztest'
The downside here is that it is not as clear to the user what functions should be accessed and which should not be accessed. With this said, it is a change that must be done.
Is your feature request related to a problem? Please describe.
When many tests are run the output can be overwhelming.
Describe the solution you'd like
I would like a mode/option that only prints test output if the test fails.
Is your feature request related to a problem? Please describe.
Testing structs can be a hassle when having to assert each individual part.
Describe the solution you'd like
An assert macro that takes a comparator function as parameter.
Describe the bug
When running tests with multiple test files, the base test used as a reference also runs.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The base/ reference test should never run.
Is your feature request related to a problem? Please describe.
The human readable output is not always wanted and/ or needed.
Describe the solution you'd like
I would like a quiet/ silent mode that makes sure nothing is printed to the screen. Rather the exit status should represent all tests passed (returns 0) or at least one test failed (returns 1).
Is your feature request related to a problem? Please describe.
When running a lot of tests, the output can be overwhelming.
Describe the solution you'd like
I would like a option/ mode that only prints out a final report giving me an overview of the test results.
There should be an option to handle signals. These signals, such as SIGSEGV should cause an error message and a failed test rather than shutting down the program.
Each asserts should have further detailed docs. These docs should at minimum include:
Describe the bug
Currently linguist is classifying the eztest header file as C++ when it is written in C.
Describe the solution you'd like
I would like for each test to be timed. The time of the test should be displayed along with the test result.
Currently all assert macros follow a naming convention of clearly defining use and meaning, however it may be favorable to also have short-hands for each macro.
Example:
ASSERT_ARE_NOT_EQUAL
could have a short-hand macro with the name ASSERT_NE
.
ASSERT_ARE_EQUAL
could have a short-hand macro with the name ASSERT_EQ
.
Is your feature request related to a problem? Please describe.
Currently, the timer option displays the time for each unit test. It does not display the overall (combined) time for all unit tests.
Describe the solution you'd like
The total time should be displayed at the end along with the report.
Is your feature request related to a problem? Please describe.
A user does not always want to run all tests.
Describe the solution you'd like
The user should be able to supply suits or tests that should not run. This can be done through command line arguments so the user does not have to change their code and recompile in order to skip tests.
Describe the bug
Segmentation fault
To Reproduce
Call EzTest using a long option that does not exist.
Expected behavior
An error/ usage output.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.