-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
Describe the bug
dotnet test in MTP mode doesn't support the --artifacts-path option that was supported in VStest mode, and supported by other dotnet commands.
To Reproduce
See the below pipeline. I expect to be able to use --artifacts-path ${{ env.ARTIFACTS_PATH }} on the test command like I could in VS test mode, and like I can on other commands. Instead I have to work around by specifying --p:ArtifactsPath=${{ env.ARTIFACTS_PATH }} instead.
jobs:
build:
name: ποΈ Build and test
runs-on: ubuntu-latest
env:
ARTIFACTS_PATH: ${{ github.workspace }}/blahblahblah/
steps:
- name: π₯ Restore dependencies
id: restore
run: dotnet restore --artifacts-path ${{ env.ARTIFACTS_PATH }} -bl:${{ env.BINLOG_PATH }}/restore.binlog
- name: ποΈ Build
id: build
run: dotnet build --configuration ${{ inputs.configuration }} --no-restore --artifacts-path ${{ env.ARTIFACTS_PATH }} -bl:${{ env.BINLOG_PATH }}/build.binlog
- name: π§ͺ Test
id: test
run: dotnet test --configuration ${{ inputs.configuration }} --no-build --artifacts-path ${{ env.ARTIFACTS_PATH }} -bl:${{ env.BINLOG_PATH }}/test.binlog --output Detailed --results-directory ${{ env.TESTRESULTS_PATH }}Exceptions (if any)
Further technical details
details of dotnet --info
Reactions are currently unavailable