Skip to content

Add support for GoogleTest unit testing framework #3572

@arduhe

Description

@arduhe

I am trying to use gtest instead of unity as test framework.

Motivation - I’d like to use the same framework in all environments (embedded and native) and not two different 😉 .

In a native environment pio test works good and as expected, whereas in a embedded one (e.g. espressif8266/d1_mini) pio test neither makes highlighting of test results nor finishes - I have to abort manually each run 😮 .

I’ve dug a little bit inside pio and think I’ve located the place where this behaviour could be changed. In platformio/commands/test/embedded.py the output from the tests is scanned to make highlighting and to detect the end of the tests. Currently it supports only the strings used by unity.

Could this please be altered to support gtest in embedded environments, too?

Thx

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions