Skip to content

Commit

Permalink
🎨 Output test results in TRX format; + use standard project directory
Browse files Browse the repository at this point in the history
  • Loading branch information
canterberry committed May 29, 2019
1 parent e722ffe commit 8ef534d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

defaults: &defaults
working_directory: "/opt/dotnet/project"
working_directory: "/docker/project"
docker:
- image: blockmason/dotnet:2.2

Expand All @@ -26,42 +26,42 @@ jobs:
steps:
- checkout
- persist_to_workspace:
root: /opt/dotnet
root: /docker
paths:
- project
build-sources:
<<: *defaults
steps:
- attach_workspace:
at: /opt/dotnet
at: /docker
- run:
name: Building sources
command: dotnet publish --configuration Release Blockmason.Link/Blockmason.Link.csproj
- persist_to_workspace:
root: /opt/dotnet
root: /docker
paths:
- project/Blockmason.Link/obj
- project/Blockmason.Link/bin
build-tests:
<<: *defaults
steps:
- attach_workspace:
at: /opt/dotnet
at: /docker
- run:
name: Building tests
command: dotnet publish --configuration Release Blockmason.Link.Tests/Blockmason.Link.Tests.csproj
- persist_to_workspace:
root: /opt/dotnet
root: /docker
paths:
- project/Blockmason.Link.Tests/obj
- project/Blockmason.Link.Tests/bin
test:
<<: *defaults
steps:
- attach_workspace:
at: /opt/dotnet
at: /docker
- run:
name: Testing
command: dotnet test --configuration Release --logger xml --results-directory reports/xunit Blockmason.Link.Tests/Blockmason.Link.Tests.csproj
command: dotnet test --configuration Release --logger:trx --results-directory reports/trx Blockmason.Link.Tests/Blockmason.Link.Tests.csproj
- store_test_results:
path: reports/xunit
path: reports/trx

0 comments on commit 8ef534d

Please sign in to comment.