Ceedling icon indicating copy to clipboard operation
Ceedling copied to clipboard

can't select specific test case in v0.31.1

Open LuisAfonso95 opened this issue 2 years ago • 7 comments

Hello, I am unsure if this is a bug or just missing from current release but,

I'm using ceedling v0.31.1 installed through gem.

I've tried adding to the project.yml

:test_runner:
  :cmdline_args: TRUE

and

:defines:
  # in order to add common defines:
  #  1) remove the trailing [] from the :common: section
  #  2) add entries to the :common: section (e.g. :test: has TEST defined)
  :common: &common_defines 
    - UNITY_USE_COMMAND_LINE_ARGS

Then I call ceedling test:FILE --test_case=<test case name>

But it just runs all tests in FILE. No matter what I write in test case or no matter which argument I use it just seems too ignore it all together.

LuisAfonso95 avatar Dec 07 '23 18:12 LuisAfonso95

You mean that worked in some previous version but it doesn't work anymore?

Letme avatar Dec 07 '23 21:12 Letme

I have never tried using ceedling in a previous version

On Thu, 7 Dec 2023, 21:33 Crt Mori, @.***> wrote:

You mean that worked in some previous version but it doesn't work anymore?

— Reply to this email directly, view it on GitHub https://github.com/ThrowTheSwitch/Ceedling/issues/832#issuecomment-1846145031, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWXYX4IGWSQAXOLZ6BDSRDYIIY3VAVCNFSM6AAAAABALPET7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBWGE2DKMBTGE . You are receiving this because you authored the thread.Message ID: @.***>

LuisAfonso95 avatar Dec 07 '23 21:12 LuisAfonso95

So this is feature request, to execute a single test case out of a test file?

Letme avatar Dec 08 '23 07:12 Letme

The feature is mentioned in the docs but now I realize this is not in the v0.31.1 docs I guess I'll need to try a release candidate

LuisAfonso95 avatar Dec 08 '23 09:12 LuisAfonso95

Sorry, I was not aware of the feature.

FILE I assume is without path, without test_ and .c, while testcase is also without test_ prefix?

Letme avatar Dec 08 '23 09:12 Letme

yes I've tried multiple combinations. FILE always been without the path and just the module name otherwise it doesn't even run.

the testcase I've tried multiple combinations. With test_, without test_ and other substrings.

It always runs the entire FILE test cases

LuisAfonso95 avatar Dec 08 '23 09:12 LuisAfonso95

@Letme this is related to #831

JuPrgn avatar Dec 08 '23 09:12 JuPrgn