Skip to content

Commit

Permalink
test: run c# tests in parallel (box/box-codegen#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build committed Dec 18, 2024
1 parent 65775b2 commit 0089c47
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "264bdc9", "specHash": "6886603", "version": "1.5.0" }
{ "engineHash": "53a28cb", "specHash": "6886603", "version": "1.5.0" }
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
WORKFLOW_FOLDER_ID: ${{ secrets.WORKFLOW_FOLDER_ID }}
APP_ITEM_ASSOCIATION_FILE_ID: ${{ secrets.APP_ITEM_ASSOCIATION_FILE_ID }}
APP_ITEM_ASSOCIATION_FOLDER_ID: ${{ secrets.APP_ITEM_ASSOCIATION_FOLDER_ID }}
run: dotnet test --logger "console;verbosity=normal" /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
run: dotnet test --settings ./Box.Sdk.Gen.Tests.Integration/TestSettings.runsettings --logger "console;verbosity=normal" /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
- name: Upload coverage report to Coveralls
uses: coverallsapp/github-action@v2
with:
Expand Down
10 changes: 10 additions & 0 deletions Box.Sdk.Gen.Tests.Integration/TestSettings.runsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<MSTest>
<Parallelize>
<!-- autoconfgured based on cpu count and number of threads -->
<Workers>0</Workers>
<Scope>MethodLevel</Scope>
</Parallelize>
</MSTest>
</RunSettings>

0 comments on commit 0089c47

Please sign in to comment.