mirror of
https://github.com/open-goal/jak-project
synced 2026-09-02 18:12:50 -04:00
tests: Cleanup decompiler test fixtures and try to improve the test output / add a readable report (#1724)
* tests: add a Jak2 `FormRegressionTest` fixture * tests/ci: minimize test log output and produce a readable report * improve naming of report due to underlying GitHub issue * hopefully fix windows handling of this argument * test... * final test * test linux coverage
This commit is contained in:
@@ -52,8 +52,18 @@ jobs:
|
||||
run: cmake --build build -j$((`nproc`+1))
|
||||
|
||||
- name: Run Tests
|
||||
env:
|
||||
GTEST_OUTPUT: "xml:opengoal-test-report.xml"
|
||||
run: ./test.sh
|
||||
|
||||
- name: Generate Test Report
|
||||
uses: dorny/test-reporter@v1
|
||||
if: success() || failure() # run this step even if previous step failed
|
||||
with:
|
||||
name: Linux Clang - Test Report
|
||||
path: ${{ github.workspace }}/**/opengoal-test-report.xml
|
||||
reporter: jest-junit
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
||||
@@ -54,8 +54,18 @@ jobs:
|
||||
|
||||
- name: Run Tests - With Coverage
|
||||
working-directory: ./build
|
||||
env:
|
||||
GTEST_OUTPUT: "xml:opengoal-test-report.xml"
|
||||
run: ninja goalc-test_coverage -w dupbuild=warn
|
||||
|
||||
- name: Generate Test Report
|
||||
uses: dorny/test-reporter@v1
|
||||
if: success() || failure() # run this step even if previous step failed
|
||||
with:
|
||||
name: Linux GCC - Test Report
|
||||
path: ${{ github.workspace }}/**/opengoal-test-report.xml
|
||||
reporter: jest-junit
|
||||
|
||||
- name: Submit Coverage Report to Codacy
|
||||
uses: codacy/codacy-coverage-reporter-action@v1
|
||||
continue-on-error: true
|
||||
|
||||
@@ -48,7 +48,17 @@ jobs:
|
||||
|
||||
- name: Run Tests
|
||||
timeout-minutes: 10
|
||||
run: ./build/bin/goalc-test.exe --gtest_color=yes --gtest_filter="-*MANUAL_TEST*"
|
||||
env:
|
||||
GTEST_OUTPUT: "xml:opengoal-test-report.xml"
|
||||
run: ./build/bin/goalc-test.exe --gtest_color=yes --gtest_brief=1 --gtest_filter="-*MANUAL_TEST*"
|
||||
|
||||
- name: Generate Test Report
|
||||
uses: dorny/test-reporter@v1
|
||||
if: success() || failure() # run this step even if previous step failed
|
||||
with:
|
||||
name: Windows Clang - Test Report
|
||||
path: ./opengoal-test-report.xml
|
||||
reporter: jest-junit
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
@@ -49,4 +49,15 @@ jobs:
|
||||
|
||||
- name: Run Tests
|
||||
timeout-minutes: 10
|
||||
run: ./build/bin/goalc-test.exe --gtest_color=yes --gtest_filter="-*MANUAL_TEST*"
|
||||
env:
|
||||
GTEST_OUTPUT: "xml:opengoal-test-report.xml"
|
||||
run: |
|
||||
./build/bin/goalc-test.exe --gtest_color=yes --gtest_brief=1 --gtest_filter="-*MANUAL_TEST*"
|
||||
|
||||
- name: Generate Test Report
|
||||
uses: dorny/test-reporter@v1
|
||||
if: success() || failure() # run this step even if previous step failed
|
||||
with:
|
||||
name: Windows MSVC - Test Report
|
||||
path: ./opengoal-test-report.xml
|
||||
reporter: jest-junit
|
||||
|
||||
Reference in New Issue
Block a user