Feature - add functionality to run single or multiple tests from one or multiple test files #736
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
FEATURE
Add possibility to execute single or multiple tests cases from one test file, or exclude some of test cases from test execution.
Base on request: #330 , #243
PR includes
Updated code :
Updated CeedlingPacket.md with new ceedling functionality.
Added 5 UT to cover new functionality. ( rubocop describe problems with to long name description)
Short description
This PR contains extension which enable execution of:
Referring to #330 , #243, the new functionality can be enabled by calling:
and updating project.yml after adding:
The UNITY_USE_COMMAND_LINE_ARGS will be set automatically by Ceedling as part of setup, so end user does not need to care about more setup.
Mentioned above functionality is an wrapper for functionality already delivered in Unity component( (UnityParseOptions)[https://github.com/ThrowTheSwitch/Unity/blob/master/src/unity.c#L2266]), and have his own limitations and problems.
Limitations and problems:
Information about such of issues are added to documentation.
** How it works in real life **
If test file contains three test cases:
test_gpio.c
and you want to run only:
ceedling test:gpio --test_case=configure
ceedling test:all --test_case=test_gpio_configure_fail_pin_not_allowed
ceedling test:gpio
orceedling test:all --test_case=gpio
In case if test case name is not in the file name no test case will be executed.
@mvandervoord : Can I ask you for a looking at this in your free time? I have hope that this feature will help other people as helped me in my work.