jadpo test
On this page
Run tests.
Run the project's tests in the interpreter, in an order a seed decides, and report each failure with the values in its assertion, what happened instead and the command that reruns it. Without a path, the project is found by walking up to app.jadpo and every test runs; a file runs its tests, a folder the tests under it, and
jadpo test [path]Arguments
path(optional): A test file,: , or a folder
Flags
--name <text>: Run tests whose names contain this text--kind <kind>: Run one kind, such as pure or recording--failed: Rerun the tests that failed last time--seed <n>: Run in the order this seed gives--watch: Rerun the tests each save reaches--keep-failed: Keep a failed test's database to inspect
On every command
--json: Print data for tools instead of text--help: Show every flag, with examples--color <when>: Choose when to use colour
jadpo test --json writes one JSON document to standard output instead of text, with the same exit code. The document has schemaVersion, command ("test"), ok, data (what the command produced, null when it failed) and diagnostics (each error with its rule, reason, next and help). A command that needs a terminal refuses --json and names the flags that do the same job.
Examples
# Run every test in the project you are injadpo test# Run the test at line 12 of a file, in the order seed 48213 givesjadpo test domains/planning/libraries/dates.test.jadpo:12 --seed 48213# Rerun the tests that failed last timejadpo test --failed# Rerun the tests each save reaches, until ctrl-cjadpo test --watch# Print the results as data for toolsjadpo test --json
Errors
cli.test_arguments: Test command has invalid argumentstest.assertion_failed: Test assertion does not holdtest.unexpected_failure: Test ended in a failure it did not expecttest.fault: Test stopped on a faulttest.subscriber_failed: Subscriber failed for good during a testtest.failed: Test run failedtest.no_tests: No tests to runtest.runtime_start_failed: Test runtime could not starttoolchain.not_built_yet: Operation is declared but not built yettoolchain.project_not_found: Project could not be found
Markdown for agents: /docs/jadpo-test.md.Built from Jadpo main at a707efb.