It looks like test options to filter for certain tests or ignore certain tests are no longer working in Core 6.0.1
Here is an example : trying to ignore test.cpp but you see PIO runs the test anyway.
PS C:\Users\Pascal\Documents\GitHub\Moovr> pio test -e native --ignore test.cpp
Verbose mode can be enabled via `-v, --verbose` option
Collected 1 tests
Processing * in native environment
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Building...
Testing...
test\test.cpp:68: initialization [PASSED]
test\test.cpp:69: ignoreEventNone [PASSED]
test\test.cpp:70: pushPop [PASSED]
test\test.cpp:71: boundariesUnderflow [PASSED]
test\test.cpp:72: boundariesOverflow [PASSED]
---------------------------------------------------------------------- native:* [PASSED] Took 1.47 seconds ----------------------------------------------------------------------
==================================================================================== SUMMARY ====================================================================================
Environment Test Status Duration
------------- ------ -------- ------------
native * PASSED 00:00:01.467
=================================================================== 5 test cases: 5 succeeded in 00:00:01.467 ===================================================================
Furthermore, it looks like tests in subfolders are no longer found. If I move the test.cpp in a subfolder eg. test/abc/test.cpp and then run it, PIO does not find the test…
PS C:\Users\Pascal\Documents\GitHub\Moovr> pio test -e native
Verbose mode can be enabled via `-v, --verbose` option
Collected 1 tests
Processing * in native environment
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Building...
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): in function `main':
C:/M/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\native\program.exe] Error 1
Building stage has failed, see errors above. Use `pio test --verbose` option to enable verbose output.
---------------------------------------------------------------------- native:* [ERRORED] Took 1.57 seconds ----------------------------------------------------------------------
==================================================================================== SUMMARY ====================================================================================
Environment Test Status Duration
------------- ------ -------- ------------
native * ERRORED 00:00:01.566
=================================================================== 1 test cases: 0 succeeded in 00:00:01.566 ===================================================================