Skip to content

Commit

Permalink
test the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
notgiven688 committed Nov 23, 2024
1 parent 67a5071 commit 04136c4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/jitter-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,29 @@ jobs:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore

- name: Test
run: dotnet test -c Release --no-restore --test-adapter-path:. --logger "trx;LogFileName=test-results.trx"
- name: BuildDoublePrecision
run: dotnet build --no-restore -p:DefineConstants="USE_DOUBLE_PRECISION"
- name: TestDoublePrecision
run: dotnet test -c Release --no-restore --test-adapter-path:. --logger "trx;LogFileName=test-results-dp.trx"

- name: TestReport
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
if: always() # Run this step even if "Test" fails
with:
name: JitterTests # Name of the check run which will be created
path: ./src/JitterTests/TestResults/test-results.trx # Path to test results
reporter: dotnet-trx # Format of test results
name: JitterTests
path: ./src/JitterTests/TestResults/test-results.trx
reporter: dotnet-trx

- name: TestDP
run: dotnet test -c Release -p:DefineConstants="USE_DOUBLE_PRECISION" --no-restore --test-adapter-path:. --logger "trx;LogFileName=test-results-dp.trx"
if: always() # Run this step even if "Test" fails

- name: TestReportDoublePrecision
- name: TestReportDP
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
if: always() # Run this step even if "TestDP" fails
with:
name: JitterTestsDoublePrecision # Name of the check run which will be created
path: ./src/JitterTests/TestResults/test-results-dp.trx # Path to test results
reporter: dotnet-trx # Format of test results


name: JitterTestsDP
path: ./src/JitterTests/TestResults/test-results-dp.trx
reporter: dotnet-trx
6 changes: 6 additions & 0 deletions src/JitterTests/MathTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ public void Setup()
{
}

[TestCase]
public static void IsDoublePrecision()
{
Assert.That(Jitter2.Precision.IsDoublePrecision);

Check warning on line 15 in src/JitterTests/MathTests.cs

View workflow job for this annotation

GitHub Actions / build

The type 'Precision' in '/home/runner/work/jitterphysics2/jitterphysics2/src/JitterTests/../Jitter2/Precision.cs' conflicts with the imported type 'Precision' in 'Jitter2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in '/home/runner/work/jitterphysics2/jitterphysics2/src/JitterTests/../Jitter2/Precision.cs'.

Check warning on line 15 in src/JitterTests/MathTests.cs

View workflow job for this annotation

GitHub Actions / build

The type 'Precision' in '/home/runner/work/jitterphysics2/jitterphysics2/src/JitterTests/../Jitter2/Precision.cs' conflicts with the imported type 'Precision' in 'Jitter2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in '/home/runner/work/jitterphysics2/jitterphysics2/src/JitterTests/../Jitter2/Precision.cs'.

Check warning on line 15 in src/JitterTests/MathTests.cs

View workflow job for this annotation

GitHub Actions / build

The type 'Precision' in '/home/runner/work/jitterphysics2/jitterphysics2/src/JitterTests/../Jitter2/Precision.cs' conflicts with the imported type 'Precision' in 'Jitter2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in '/home/runner/work/jitterphysics2/jitterphysics2/src/JitterTests/../Jitter2/Precision.cs'.

Check warning on line 15 in src/JitterTests/MathTests.cs

View workflow job for this annotation

GitHub Actions / build

The type 'Precision' in '/home/runner/work/jitterphysics2/jitterphysics2/src/JitterTests/../Jitter2/Precision.cs' conflicts with the imported type 'Precision' in 'Jitter2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in '/home/runner/work/jitterphysics2/jitterphysics2/src/JitterTests/../Jitter2/Precision.cs'.

Check failure on line 15 in src/JitterTests/MathTests.cs

View workflow job for this annotation

GitHub Actions / JitterTests

JitterTests.MathTests ► IsDoublePrecision()

Failed test found in: ./src/JitterTests/TestResults/test-results.trx Error: Assert.That(Jitter2.Precision.IsDoublePrecision, Is.True) Expected: True But was: False
Raw output
  Assert.That(Jitter2.Precision.IsDoublePrecision, Is.True)
  Expected: True
  But was:  False

   at JitterTests.MathTests.IsDoublePrecision() in /home/runner/work/jitterphysics2/jitterphysics2/src/JitterTests/MathTests.cs:line 15

1)    at JitterTests.MathTests.IsDoublePrecision() in /home/runner/work/jitterphysics2/jitterphysics2/src/JitterTests/MathTests.cs:line 15

}

[TestCase]
public static void QMatrixProjectMultiplyLeftRight()
{
Expand Down

0 comments on commit 04136c4

Please sign in to comment.