Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to write and run tests #373

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ be present:
To run a test do the following steps to prepare for execution:

- Prepare inputs
- Given an `<input>` module; take the <basename> of said module.
- Given an `<input>.wasm` file; take the `<basename>` of said module.
caspervonb marked this conversation as resolved.
Show resolved Hide resolved
- If `<basename>.<arg>` exists; take the program arguments from said file.
Copy link
Member

Choose a reason for hiding this comment

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

It's a minor detail, but I'd find this more clear with ".args" instead of ".arg".

Also, we should document the whitespacing convention in the arguments file. Can we say that arguments are separated by whitespace, and '"' quotes may be used to enclose an argument containing whitespace?

- If `<basename>.<env>` exists; take the program environment from said file.
- If `<basename>.<dir>` exists; preopen the directory from said file.
Expand Down