mirror of
https://github.com/tbamud/tbamud.git
synced 2026-04-30 04:41:51 +02:00
Add Unity-based unit test infrastructure (Phase 1 — 117 tests) (#177)
Introduced new system for unit tests based on the Unity framework. Added tests for some of the simple functions in four different files.
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -8,6 +8,8 @@ on:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -19,4 +21,15 @@ jobs:
|
||||
- name: configure
|
||||
run: ./configure
|
||||
- name: build
|
||||
run: cd src && touch .accepted && make
|
||||
working-directory: src
|
||||
run: touch .accepted && make
|
||||
- name: test
|
||||
working-directory: tests
|
||||
run: make test
|
||||
- name: publish test results
|
||||
uses: dorny/test-reporter@v1
|
||||
if: always()
|
||||
with:
|
||||
name: Unity Tests
|
||||
path: tests/test-results/*.xml
|
||||
reporter: java-junit
|
||||
|
||||
Reference in New Issue
Block a user