Pio test causes ProjectEnvsNotAvailableError: Please setup environments in `platformio.ini` file

Hello
I’ve recently decided to un-dust some of my projects and found few un-expected issues.

running pio test from cmd causes error - ProjectEnvsNotAvailableError: Please setup environments in platformio.ini file

platformio.ini


[env:uno]
platform = atmelavr
board = uno
framework = arduino
lib_ldf_mode = deep

[env:nanoatmega328]
platform = atmelavr
board = nanoatmega328
framework = arduino
lib_ldf_mode = deep

CLion Plugin doesn’t have Test run configuration. Was it removed?

The command started working after I created project in in VSCode and run test there. CLion UI still doesn’t have running test configuration