Tests can't be executed if running ceedling test:path
AngusWooster opened this issue · comments
Hi
I got an issue when I run ceedling test:path[dir] # Run tests whose test path contains [dir] or [dir] substring
First, If I run ceedling test:all or test:* (run single test) , test can be executed every time.
the output message look like as follows.
$./ceedling test:all
Test 'test_anc.c'
----------------------------
Running test_anc.out...
-----------
TEST OUTPUT
-----------
[test_anc.c]
- "test_anc_set_parameters"
--------------------
OVERALL TEST SUMMARY
--------------------
TESTED: 1
PASSED: 1
FAILED: 0
IGNORED: 0
After that, If I run ceedling test:path[ 'mypath' ], all of tests aren't be executed.
$./ceedling test:path[example]
Test 'test_anc.c'
----------------------------
--------------------
OVERALL TEST SUMMARY
--------------------
No tests executed.
Do I miss some thing??
It seems that "ceedling test:path" can work one time, after I ran ceedling clobber
test:path
and test:pattern
use the same force_run => false
option as test:delta
.
https://github.com/ThrowTheSwitch/Ceedling/blob/master/lib/ceedling/tasks_tests.rake#L25
The expected behaviour of these commands would be to build and test changed files only.
Hi @AngusWooster ,
If you are interested to run test case you can right now use:
ceedling test:all --test_case=<test_case_name>
The changes enabling --test_case= functionality is right now on master branch and will be included I think release 0.32.
To enable it please add to your project.yml:
:test_runner:
:cmdline_args: true
Please let me know if this functionality works for you.