@@ -18,37 +18,39 @@ public static class TestResources
18
18
private const string BuildConfig = "Release" ;
19
19
#endif
20
20
21
- public const string GtaSolutionDir = @"..\..\..\" ;
22
- public const string SampleTestsSolutionDir = GtaSolutionDir + @"..\SampleTests\" ;
23
- public const string TestdataDir = GtaSolutionDir + @"Tests.Common\bin\" + BuildConfig + @"\Resources\TestData\" ;
21
+ public const string RootDir = @"..\..\..\..\..\" ;
22
+ public const string SampleTestsSolutionDir = RootDir + @"SampleTests\" ;
23
+ public const string GoogleTestAdapterBuildDir = RootDir + @"out\binaries\GoogleTestAdapter\" + BuildConfig + @"\" ;
24
+ public const string SampleTestsBuildDir = RootDir + @"out\binaries\SampleTests\" ;
25
+ public const string TestdataDir = GoogleTestAdapterBuildDir + @"Tests.Common\Resources\TestData\" ;
24
26
25
27
// helpers
26
- public const string TenSecondsWaiter = GtaSolutionDir + @"TenSecondsWaiter\bin\" + BuildConfig + @" \TenSecondsWaiter.exe";
27
- public const string AlwaysCrashingExe = GtaSolutionDir + BuildConfig + @" \CrashingExe.exe";
28
- public const string AlwaysFailingExe = GtaSolutionDir + BuildConfig + @" \FailingExe.exe";
29
-
30
- public const string Tests_DebugX86 = SampleTestsSolutionDir + @"Debug\Tests_gta.exe" ;
31
- public const string Tests_ReleaseX86 = SampleTestsSolutionDir + @"Release\Tests_gta.exe" ;
32
- public const string Tests_DebugX86_Gtest170 = SampleTestsSolutionDir + @"Debug\Tests_1.7.0_gta.exe" ;
33
- public const string Tests_ReleaseX64 = SampleTestsSolutionDir + @"x64\ Release\Tests_gta.exe" ;
28
+ public const string TenSecondsWaiter = GoogleTestAdapterBuildDir + @"TenSecondsWaiter\TenSecondsWaiter.exe" ;
29
+ public const string AlwaysCrashingExe = GoogleTestAdapterBuildDir + @"CrashingExe \CrashingExe.exe";
30
+ public const string AlwaysFailingExe = GoogleTestAdapterBuildDir + @"FailingExe \FailingExe.exe";
31
+
32
+ public const string Tests_DebugX86 = SampleTestsBuildDir + @"Debug\Tests_gta.exe" ;
33
+ public const string Tests_ReleaseX86 = SampleTestsBuildDir + @"Release\Tests_gta.exe" ;
34
+ public const string Tests_DebugX86_Gtest170 = SampleTestsBuildDir + @"Debug\Tests_1.7.0_gta.exe" ;
35
+ public const string Tests_ReleaseX64 = SampleTestsBuildDir + @"Release-x64 \Tests_gta.exe" ;
34
36
public const string Tests_ReleaseX64_Output = TestdataDir + @"Tests_gta_exe_output.txt" ;
35
37
public const int NrOfTests = 94 ;
36
38
public const int NrOfPassingTests = 40 ;
37
39
public const int NrOfFailingTests = 54 ;
38
40
39
- public static readonly string LoadTests_ReleaseX86 = Path . Combine ( SampleTestsSolutionDir , @"Release\LoadTests_gta.exe" ) ;
41
+ public static readonly string LoadTests_ReleaseX86 = Path . Combine ( SampleTestsBuildDir , @"Release\LoadTests_gta.exe" ) ;
40
42
41
- public static readonly string LongRunningTests_ReleaseX86 = Path . Combine ( SampleTestsSolutionDir , @"Release\LongRunningTests_gta.exe" ) ;
43
+ public static readonly string LongRunningTests_ReleaseX86 = Path . Combine ( SampleTestsBuildDir , @"Release\LongRunningTests_gta.exe" ) ;
42
44
43
- public const string CrashingTests_DebugX86 = SampleTestsSolutionDir + @"Debug\CrashingTests_gta.exe" ;
44
- public const string CrashingTests_ReleaseX86 = SampleTestsSolutionDir + @"Release\CrashingTests_gta.exe" ;
45
- public const string CrashingTests_DebugX64 = SampleTestsSolutionDir + @"X64\ Debug\CrashingTests_gta.exe" ;
46
- public const string CrashingTests_ReleaseX64 = SampleTestsSolutionDir + @"X64\ Release\CrashingTests_gta.exe" ;
45
+ public const string CrashingTests_DebugX86 = SampleTestsBuildDir + @"Debug\CrashingTests_gta.exe" ;
46
+ public const string CrashingTests_ReleaseX86 = SampleTestsBuildDir + @"Release\CrashingTests_gta.exe" ;
47
+ public const string CrashingTests_DebugX64 = SampleTestsBuildDir + @"Debug-x64 \CrashingTests_gta.exe" ;
48
+ public const string CrashingTests_ReleaseX64 = SampleTestsBuildDir + @"Release-x64 \CrashingTests_gta.exe" ;
47
49
48
- public const string DllTests_ReleaseX86 = SampleTestsSolutionDir + @"Release\DllTests_gta.exe" ;
49
- public const string DllTestsDll_ReleaseX86 = SampleTestsSolutionDir + @"Release\DllProject.dll" ;
50
- public const string DllTests_ReleaseX64 = SampleTestsSolutionDir + @"X64\ Release\DllTests_gta.exe" ;
51
- public const string DllTestsDll_ReleaseX64 = SampleTestsSolutionDir + @"X64\ Release\DllProject.dll" ;
50
+ public const string DllTests_ReleaseX86 = SampleTestsBuildDir + @"Release\DllTests_gta.exe" ;
51
+ public const string DllTestsDll_ReleaseX86 = SampleTestsBuildDir + @"Release\DllProject.dll" ;
52
+ public const string DllTests_ReleaseX64 = SampleTestsBuildDir + @"Release-x64 \DllTests_gta.exe" ;
53
+ public const string DllTestsDll_ReleaseX64 = SampleTestsBuildDir + @"Release-x64 \DllProject.dll" ;
52
54
public const int NrOfDllTests = 2 ;
53
55
54
56
public const string SucceedingBatch = @"Tests\Returns0.bat" ;
0 commit comments