Error code 3221225785 when starting native tests on windows platform on GitHub Actions

There recently was a change in requirements for the unit test code per Code coverage issue on native - #28 by ivankravets. The updated examples also reflects this.

When I write your test_UnitTests/Setup.cpp to

#include <gmock/gmock.h>

TEST(DummyTest, ShouldPass)
{
    EXPECT_EQ(1, 1);
}

int main(int argc, char **argv)
{
    ::testing::InitGoogleMock(&argc, argv);

    if(RUN_ALL_TESTS());

    return 0;
}

everything passes.

1 Like