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

PIO test filters not working #4274

Closed
ali80 opened this issue May 18, 2022 · 1 comment
Closed

PIO test filters not working #4274

ali80 opened this issue May 18, 2022 · 1 comment

Comments

@ali80
Copy link

ali80 commented May 18, 2022

Operating system:
macos 12.1

PlatformIO Version:
tested on both 6.0.1 & 6.0.2a1

Description of problem

first mentioned here PIO test filters not working?
Hi, I’ve used filters for unit testing on version 5x without problem,
now I’m testing same project on version 6.0.1 but seems filters are broken?
also created new project and got the same results.
sample command:
pio test -e native -f aaa
should only run aaa file but it seems that the filter is ignored all together.
the output is like this;

ali@Air ~/d/n/esp32> pio test -e native --filter aaa                                             master-!?
Verbose mode can be enabled via `-v, --verbose` option
Collected 1 tests

Processing * in native environment
.
.
.

The content of platformio.ini:

[env:native]
platform = native
build_type = debug
build_flags = -std=gnu++11
lib_compat_mode = off
lib_archive = no
@ivankravets
Copy link
Member

Processing * in native environment

There is no "aaa" test. Please read updated docs https://docs.platformio.org/en/latest/advanced/unit-testing/structure.html

A test folder must start with test_ prefix. Otherwise, PlatformIO treats this folder and a group of tests.

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

No branches or pull requests

2 participants