PlatformIO Community

Is it possible to generate code coverage reports for a remote target?

I am trying to generate code coverage as part of my GitLab pipeline. An important part of the pipeline is to execute the tests on a remote target since my GitLab server is not connected to the board and there is no emulator that I have been able to find for it, I am using the Arduino MKR WiFi 1010. I have been able to generate the coverage reports locally using pio test --junit-output-path . but I cannot find a way to generate them with pio remote [options]. If this is possible, any tips on how to get it to work would be helpful

Thank you in advance!

Indeed, pio remote test has no --junit-output-path option like pio test has.

>pio remote test --help
Usage: pio remote test [OPTIONS]

  -e, --environment <environment>
  -f, --filter <pattern>          Filter tests by a pattern
  -i, --ignore <pattern>          Ignore tests by a pattern
  --upload-port TEXT
  --test-port TEXT
  -d, --project-dir DIRECTORY
  -r, --force-remote
  -v, --verbose
  -h, --help                      Show this message and exit.

Unless I’m not seeing something that @ivankravets sees, it looks like you should open an issue in Issues · platformio/platformio-core · GitHub about this.

Thank you very much for the quick reply! I will wait until tomorrow morning or Saturday to open the issue giving time for as much input here as I can get for a more concise and more well-informed issue.