The test suite uses ooRexxUnit
with ooTest extensions. All tests are
in .testGroup files under suites/.
The Rexx Parser is not in this tree: since 22 November 2026, the
parser, its utilities and its samples live only in ooRexx's SVN
(main/trunk/extensions/parser), and come with ooRexx. The
tests use the parser of the installed ooRexx, the
parser.cls found in the PATH (r13572 or
later); if there is none, RunTests.rex says so and
stops.
From the tests/ directory:
rexx RunTests.rex
It says which parser.cls it uses, and performs a sanity
check before running any suite: CheckMessages.rex verifies
that the error messages written in the comments of that parser
(parser.cls and parser/) are those of the
running interpreter (ERRORTEXT), and that the interpreter
has a message for every error code the parser raises. If the check
fails, the run aborts.
Then it discovers all .testGroup files in
suites/ and runs them.
Two sets of suites live in other trees, and run here too when an environment variable names a working copy of the tree, with the framework of this tree and the parser of the installed ooRexx:
| Variable | Working copy of | Suites |
|---|---|---|
TEST_TRUNK |
ooRexx's test/trunk |
ooRexx/extensions/parser/*.testGroup: the suites of the
core (the parser and the highlighter, FencedCode included), with their
ParserTestCase.cls |
DOCS_TRUNK |
ooRexx's docs/trunk |
tools/bldoc_orx/tests/ParserDocBook.testGroup: the
tests of Parser.DocBook.cls |
TEST_TRUNK=/path/to/test/trunk DOCS_TRUNK=/path/to/docs/trunk rexx RunTests.rex
Without a variable, it says that those suites do not run, and goes on. If a variable is set but the suites are not there, that is an error.
Individual suites can also be run standalone:
cd tests
PATH="framework:suites:../bin:$PATH" rexx suites/RexxPubOptions.testGroup
The suites of the core use ParserTestCase.cls, which
lives with them in test/trunk.
TempTestCase.cls
extends ooTestCase for tests that need temporary files or folders. They
are created with the framework's .TemporaryTestFile and
.TemporaryTestDirectory classes in the platform's temporary
directory (.File~temporaryPath: TMPDIR or
/tmp on Unix-like systems, %TEMP% on Windows),
as the ooRexx test suite does, and are deleted afterwards:
tempFile(name [, contents]) — a file,
written; returns its full path. Every name gets a suffix of its own,
before its extension.tempDir(name) — a folder, made;
returns its full path.tearDown — deletes everything the test
asked for, whether it passed or not; a folder goes with all that is in
it. A subclass with a tearDown of its own calls
self~tearDown:super.rmTree(path) — deletes a file, or a
folder and all that is in it; it refuses any path outside the temporary
directory.cgi/ contains integration tests for
CGI.markdown.rex. These are not run by
RunTests.rex — they require a running Apache instance. See
cgi/readme.md for setup
instructions and test details (39 tests covering response structure,
YAML options, docclass handling, fenced code, URL parameters, print=pdf,
and view=highlight).
pdf/ contains integration tests for
md2pdf.rex. These are not run by
RunTests.rex — they require Pandoc, pagedjs-cli, and
poppler-utils. See pdf/readme.md for setup
instructions and test details (18 tests covering PDF generation,
validation, content extraction, docclass handling, fenced code, section
numbers, error handling, and page size).