Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't select specific test case in v0.31.1 #832

Open
LuisAfonso95 opened this issue Dec 7, 2023 · 7 comments
Open

can't select specific test case in v0.31.1 #832

LuisAfonso95 opened this issue Dec 7, 2023 · 7 comments

Comments

@LuisAfonso95
Copy link

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.

@Letme
Copy link

Letme commented Dec 7, 2023

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

@LuisAfonso95
Copy link
Author

LuisAfonso95 commented Dec 7, 2023 via email

@Letme
Copy link

Letme commented Dec 8, 2023

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

@LuisAfonso95
Copy link
Author

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

@Letme
Copy link

Letme commented Dec 8, 2023

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?

@LuisAfonso95
Copy link
Author

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

@JuPrgn
Copy link

JuPrgn commented Dec 8, 2023

@Letme this is related to #831

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants