Skip to content

bench-300: adding unit and integration testing - #10

Merged
jamesrut1996 merged 1 commit into
mainfrom
bench-300-testing
Nov 13, 2026
Merged

jamesrut1996 merged 1 commit into
mainfrom
bench-300-testing

Conversation

@jamesrut1996

Copy link
Copy Markdown
Contributor

Adding unit and integration testing, copied over qspec and have had claude do most of the work, i only wrote 1 unit test. Everything passes

for unit tests run from the project home dir

tests/run.sh tests/unit/

for integration tests run from the project home dir too

 bash tests/integration.sh

Evidence of both passing


jrutledge@homer:~/internalWork/Parallelisation-Project$ tests/run.sh tests/unit/
2026.11.12D17:09:10.927271882 info PID[582701] HOST[homer.aquaq.co.uk] task results will be saved in /home/jrutledge/internalWork/Parallelisation-Project/results/2026.11.12D17.09.10.923500295
2026.11.12D17:09:10.932186149 info PID[582701] HOST[homer.aquaq.co.uk] primary started, listening on 0
........................................................................2026.11.12D17:09:18.174636319 warn PID[582701] HOST[homer.aquaq.co.uk] no heartbeat from secondary 1
..............

For 23 specifications, 86 expectations were run.
86 passed, 0 failed.  0 errors.
jrutledge@homer:~/internalWork/Parallelisation-Project$ bash tests/integration.sh

== tests/integration/disconnect_spec.q
..

For 1 specifications, 2 expectations were run.
2 passed, 0 failed.  0 errors.

== tests/integration/gating_spec.q
.....

For 1 specifications, 5 expectations were run.
5 passed, 0 failed.  0 errors.

== tests/integration/gc_spec.q
......

For 1 specifications, 6 expectations were run.
6 passed, 0 failed.  0 errors.

== tests/integration/happypath_spec.q
.....

For 1 specifications, 5 expectations were run.
5 passed, 0 failed.  0 errors.

== tests/integration/kill_spec.q
....

For 1 specifications, 4 expectations were run.
4 passed, 0 failed.  0 errors.

== tests/integration/primaryloss_spec.q
.

For 1 specifications, 1 expectations were run.
1 passed, 0 failed.  0 errors.
tests/integration.sh: line 69: 591879 Killed                  "$Q" src/primary.q -p "$PRIMARY_PORT" < /dev/null >> "$LOG_DIR/primary.log" 2>&1

== tests/integration/registration_spec.q
....

For 1 specifications, 4 expectations were run.
4 passed, 0 failed.  0 errors.

== tests/integration/runtask_spec.q
........

For 1 specifications, 8 expectations were run.
8 passed, 0 failed.  0 errors.

== tests/integration/spawn_spec.q
...

For 1 specifications, 3 expectations were run.
3 passed, 0 failed.  0 errors.

== tests/integration/stale_spec.q
..

For 1 specifications, 2 expectations were run.
2 passed, 0 failed.  0 errors.

== tests/integration/stop_spec.q
..

For 1 specifications, 2 expectations were run.
2 passed, 0 failed.  0 errors.

integration: all 11 spec files passed
jrutledge@homer:~/internalWork/Parallelisation-Project$ 

@mkeenan-di mkeenan-di left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All new code - looks sensible

@jamesrut1996
jamesrut1996 merged commit 8066975 into main Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants