Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Release-Candidate committed Apr 25, 2021
1 parent 3954cff commit 556466f
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ jobs:
- name: Run Tests
run: |
cd $GITHUB_WORKSPACE
dotnet ./bin/TestTzolkin.dll --summary
dotnet ./bin/TestTzolkin.dll --summary --nunit-summary .\test_results\nresult.xml --junit-summary .\test_results\jresult.xml
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: Test Results
path: ./test_results/*.trx
path: ./test_results/*.xml
6 changes: 3 additions & 3 deletions .github/workflows/osx_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
directory: ./coverage/reports/
# flags: unittest
env_vars: OS,PYTHON
name: Linux-Test-Src
name: OSX-Test-Src
fail_ci_if_error: false
path_to_write_report: ./coverage/codecov_report.txt
verbose: true
Expand Down Expand Up @@ -83,10 +83,10 @@ jobs:
- name: Run Tests
run: |
cd $GITHUB_WORKSPACE
dotnet ./bin/TestTzolkin.dll --summary
dotnet ./bin/TestTzolkin.dll --summary --nunit-summary ./test_results/nresult.xml --junit-summary ./test_results/jresult.xml
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: Test Results
path: ./test_results/*.trx
path: ./test_results/*.xml
4 changes: 2 additions & 2 deletions .github/workflows/windows_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ jobs:
shell: cmd
run: |
cd $GITHUB_WORKSPACE
.\bin\TestTzolkin.exe --summary
dotnet .\bin\TestTzolkin.dll --summary --nunit-summary .\test_results\nresult.xml --junit-summary .\test_results\jresult.xml
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: Test Results
path: ./test_results/*.trx
path: ./test_results/*.xml
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Pipfile.lock

# Coverage data
*.xml*.acv
*coverage.*
*coverage.xml
*coverage.json
*.exn

# Fake and Ionide directories
Expand Down
11 changes: 11 additions & 0 deletions run_coverage.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
:: SPDX-License-Identifier: MIT
:: Copyright (C) 2021 Roland Csaszar
::
:: Project: Tzolkin
:: File: run_coverage.bat
:: Date: 25.Apr.2021
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: /p:AltCoverReportFormat=“Json”, “NCover” or default “OpenCover”

dotnet test -v n /p:AltCover=true /p:AltCoverReportFormat=OpenCover /p:AltCoverReport=.\coverage.xml
10 changes: 10 additions & 0 deletions run_tests.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
:: SPDX-License-Identifier: MIT
:: Copyright (C) 2021 Roland Csaszar
::
:: Project: Tzolkin
:: File: run_tests.bat
:: Date: 25.Apr.2021
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

dotnet fake run build.fsx target publish
.\bin\TestTzolkin.exe --summary --nunit-summary .\test_results\nresult.xml --junit-summary .\test_results\jresult.xml

0 comments on commit 556466f

Please sign in to comment.