Ceedling icon indicating copy to clipboard operation
Ceedling copied to clipboard

Tests can't be executed if running ceedling test:path

Open AngusWooster opened this issue 3 years ago • 2 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

AngusWooster avatar Sep 15 '22 02:09 AngusWooster

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.

pajacobson avatar Dec 14 '22 22:12 pajacobson

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.

lukzeg avatar Feb 03 '23 12:02 lukzeg