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:
Copilot
2026-04-23 01:17:48 +02:00
committed by GitHub
parent 552461df51
commit ac94839eb5
18 changed files with 6741 additions and 3 deletions

View File

@@ -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