Skip to content

Commit 36ced37

Browse files
committed
Update PATH before tests to encure registred control can be found and changed test MapProjectionTest to WpfFact.
1 parent dcb0e36 commit 36ced37

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/msbuild.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,15 @@ jobs:
274274
DOTNET_ROOT: C:\Program Files\dotnet\x86
275275
DOTNET_MULTILEVEL_LOOKUP: 0
276276
"DOTNET_ROOT(x86)": C:\Program Files\dotnet\x86
277+
PATH: ${{ github.workspace }}\src\bin\${{env.BUILD_CONFIGURATION}}\Win32;${{ env.PATH }}
278+
PROJ_LIB: ${{ github.workspace }}\src\bin\${{env.BUILD_CONFIGURATION}}\Win32\proj9\share\proj
277279
run: vstest.console.exe /Blame:"CollectHangDump;TestTimeout=120000;DumpType=Full" /Diag:logs\log.txt /Platform:x86 -e:PROJ_LIB="${{ github.workspace }}\src\bin\${{env.BUILD_CONFIGURATION}}\Win32\proj9\share\" .\MapWinGisTests-net\MapWinGisTests\bin\x86\${{env.BUILD_CONFIGURATION}}\net10.0-windows8.0\MapWinGisTests.dll
278280

279281
- name: Unit Testing x64
280282
if: ${{matrix.platform == 'x64' }}
283+
env:
284+
PATH: ${{ github.workspace }}\src\bin\${{env.BUILD_CONFIGURATION}}\x64;${{ env.PATH }}
285+
PROJ_LIB: ${{ github.workspace }}\src\bin\${{env.BUILD_CONFIGURATION}}\x64\proj9\share\proj
281286
run: vstest.console.exe /Blame:"CollectHangDump;TestTimeout=120000;DumpType=Full" /Diag:logs\log.txt /Platform:x64 -e:PROJ_LIB="${{ github.workspace }}\src\bin\${{env.BUILD_CONFIGURATION}}\x64\proj9\share\" .\MapWinGisTests-net\MapWinGisTests\bin\x64\${{env.BUILD_CONFIGURATION}}\net10.0-windows8.0\MapWinGisTests.dll
282287

283288
- name: Upload test logs and hang dump

‎MapWinGisTests-net/MapWinGisTests/AxMapTests.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void VersionTest()
3232
_testOutputHelper.WriteLine("Version: {0}", version);
3333
}
3434

35-
[WpfFact]
35+
[StaFact]
3636
public void MapProjectionTest()
3737
{
3838
using var form = new WinFormsApp1.Form1();

0 commit comments

Comments
 (0)