docs: add testing guide (how to add/run OpenAF tests)#1790
Merged
Conversation
Agent-Logs-Url: https://github.com/OpenAF/openaf/sessions/13d1d852-e139-4f2d-88e9-213afeae16c6 Co-authored-by: nmaguiar <11761746+nmaguiar@users.noreply.github.com>
Copilot stopped work on behalf of
nmaguiar due to an error
March 27, 2026 02:51
Collaborator
|
@copilot try again |
…ndividual test functions Agent-Logs-Url: https://github.com/OpenAF/openaf/sessions/4a0365fd-33fa-4995-afc9-22eb96123721 Co-authored-by: nmaguiar <11761746+nmaguiar@users.noreply.github.com>
Contributor
Author
Done — |
Copilot
AI
changed the title
[WIP] Add documentation page for testing OpenAF functions
docs: add testing guide (how to add/run OpenAF tests)
Mar 27, 2026
nmaguiar
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
docs/testing.md— a comprehensive, contributor-focused guide on how to write, add, and run tests for OpenAF functions and modules.What's included
tests/directory structure table covering YAML orchestrators, JS test files, results JSON, JUnit XML, Markdown report, and SVG badgesow.testAPI reference (assert, profiling, counters) with a corrected minimal example; clarifies thatow.loadTest()is called once by the orchestrator framework and must not be repeated inside individual test functionstests/autoTestAll.ZIP.yaml; shows how to register a new area inautoTestAll.allJobs.yamlojob/java -jarinvocations, andsh oafTest.shusagepom.xmlexec-maven-pluginsnippet, howoafTest.shintegrates withmvn testautoTestAll.mdTesting
Original prompt
Create a new documentation page under docs/ that explains how to write, add, and run tests for OpenAF functions and modules. The new doc should be clear, actionable, and include copy-paste examples and templates so contributors can easily add tests that integrate with the repo's existing test framework and CI. The PR should add a single file at docs/testing.md (or docs/howto-testing.md — choose docs/testing.md) with the following sections and content:
Title: Testing OpenAF: how to add and run tests
Sections and required content:
ojob autoTestAll.yamlandjava -jar ../openaf.jar --ojob -e autoTestAll.yaml.mvn testif appropriate or how CI calls the helper script. Provide a brief note that CI integrations should run oafTest.sh or the ojob command.Requirements for the PR:
If anything is ambiguous (branch to target, or exact filename preference), create the PR against the default repository branch (master/main) — leave base_ref empty so maintainers can review and adjust. If the repositor...
This pull request was created from Copilot chat.
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.