Skip to content

Test executable and test method method symbols detected but no tests found #149

@vrogier

Description

@vrogier

Hi,

Until now, we were using resharper to run locally our unit tests but we would like to switch to GTA to enable it in our build process with vstest.

But I cannot make GTA to detect our gtests suite.

Here is the output of GTA:

No settings configured for test executable '[...]UnitTests.exe'; running with solution settings: AdditionalTestExecutionParam: '', BatchForTestSetup: '', BatchForTestTeardown: '', BreakOnFailure: False, CatchExceptions: True, DebugMode: True, KillProcessesOnCancel: False, MaxNrOfThreads: 8, NrOfTestRepetitions: 1, ParallelTestExecution: False, ParseSymbolInformation: False, PathExtension: '', PrintTestOutput: True, RunDisabledTests: False, ShowReleaseNotes: True, ShuffleTests: False, ShuffleTestsSeed: 0, TestDiscoveryRegex: '', TestDiscoveryTimeoutInSeconds: 60, TestNameSeparator: '', TimestampOutput: False, TraitsRegexesAfter: {}, TraitsRegexesBefore: {}, UseNewTestExecutionFramework: False, WorkingDir: '$(ExecutableDir)'
No Google Test indicator file found for executable [...]UnitTests.exe
'[...]UnitTests.exe' matches default regex '[Tt]est[s]?\.exe'
No settings configured for test executable '[...]UnitTests.exe'; running with solution settings: AdditionalTestExecutionParam: '', BatchForTestSetup: '', BatchForTestTeardown: '', BreakOnFailure: False, CatchExceptions: True, DebugMode: True, KillProcessesOnCancel: False, MaxNrOfThreads: 8, NrOfTestRepetitions: 1, ParallelTestExecution: False, ParseSymbolInformation: False, PathExtension: '', PrintTestOutput: True, RunDisabledTests: False, ShowReleaseNotes: True, ShuffleTests: False, ShuffleTestsSeed: 0, TestDiscoveryRegex: '', TestDiscoveryTimeoutInSeconds: 60, TestNameSeparator: '', TimestampOutput: False, TraitsRegexesAfter: {}, TraitsRegexesBefore: {}, UseNewTestExecutionFramework: False, WorkingDir: '$(ExecutableDir)'
Parsing pdb file "[...]UnitTests.pdb"
Found 149 test method symbols and 0 trait symbols in binary [...]UnitTests.exe
Found 0 tests in executable [...]UnitTests.exe

We are using latest GTA release using VS2017.
I've been trough the troublesoohting section without any luck.

The binary can be run with or without the list test command line option from any folder (no dependencies), resulting expected output.

But no tests detected from GTA :(
I've tried to play with the GTA options still with no luck.

I may have missed something trivial but I cannot see what.
Any ideas ?

Regards,

Vincent

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions