Skip to content

Add golden tests for the sequence document - #633

Merged
JayHuLBL merged 3 commits into
mainfrom
ag/621-test-sequence
Oct 8, 2026
Merged

JayHuLBL merged 3 commits into
mainfrom
ag/621-test-sequence

Conversation

@AntoineGautier

@AntoineGautier AntoineGautier commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Description

This addresses #632.
It adds a long awaited test suite reproducing payloads from mocked UI selections and generating documentation out of these payloads for 52 system configs. Impact on server test runtime ~ 1 min.
Some minor restructuring of the client code was needed.
This is a first step, to secure the development planned in #620.

This PR also includes the detailed specification for #620 in docs/selection-keys.md.

Testing

See #621 for the description of the new tests included in CI.

- generate_doc.py: set the log level when run (default WARNING,
  LOG_LEVEL to override) instead of DEBUG at import
- mogrifier.py: log selections missing from the payload at INFO
- generateDoc: log the script output once instead of per chunk
- CI: start the server with ts-node, since the tests write files that
  restart nodemon
- Sequence unit test: create its output directory
@AntoineGautier

Copy link
Copy Markdown
Collaborator Author

@JayHuLBL This is ready for review and merge.

@JayHuLBL
JayHuLBL merged commit 3312c1a into main Oct 8, 2026
2 checks passed
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