Skip to content

Commit bd83c6c

Browse files
running tests with private vstest.console.exe
1 parent 3fd7a34 commit bd83c6c

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/cdp.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,29 @@ jobs:
6969
[io.compression.zipfile]::OpenRead($dst).Entries.Name | % { "- $_"}
7070
shell: pwsh
7171

72-
- uses: darenm/[email protected]
73-
7472
- name: Test (new)
7573
continue-on-error: true
7674
run: |
75+
mkdir /tw
76+
echo "Downloading & installing test-window package..."
77+
Invoke-WebRequest -Uri "https://ksapplications.blob.core.windows.net/public/test-window.zip" -OutFile "/tw/test-window.zip"
78+
Expand-Archive -Path "/tw/test-window.zip" -DestinationPath /tw
79+
echo "Checking install..."
80+
dir env:\
7781
cd $env:OutDir
7882
pwd
79-
vstest.console.exe *.UnitTests.dll --ListTests
80-
vstest.console.exe *.UnitTests.dll /Parallel "/logger:console;verbosity=detailed" "/logger:trx;LogFileName=TestResults.trx"
83+
dir
84+
echo "Running tests..."
85+
& "\tw\vstest.console.exe" *.UnitTests.dll "/logger:console;verbosity=detailed" "/logger:trx;LogFileName=TestResults.trx"
8186
8287
- name: Generate test report (new)
8388
uses: dorny/test-reporter@v1
89+
continue-on-error: true
8490
with:
85-
name: Tests Results (new)
86-
path: ${{ env.OutDir }}*.trx
91+
name: Tests Results
92+
path: ${{ env.OutDir }}TestResults.trx
8793
reporter: dotnet-trx
88-
fail-on-error: true
94+
fail-on-error: false
8995

9096
- name: Test
9197
uses: rusty-bender/vstest-action@main

0 commit comments

Comments
 (0)