Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,24 @@
"./tests/python"
],
},
{
"label": "Run JS tests",
"type": "process",
"command": "poetry",
"args": [
"run",
"bash",
"./peter-jr",
"./tests/js/"
],
},
{
"label": "Test",
"dependsOrder": "sequence",
"dependsOn": [
"Install development dependencies",
"Run pytest",
"Run JS tests",
],
"group": {
"kind": "test",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ If you are using VSCode, you can just press <kbd>Ctrl</kbd> + <kbd>Shift</kbd> +
1. Compile the project
2. Install development dependencies: `poetry install --no-root --only=dev`
3. From the root directory, run `poetry run pytest ./tests/python`
4. From the root directory, run `poetry run bash ./peter-jr ./tests/js/`

For VSCode users, similar to the Build Task, we have a Test Task ready to use.

Expand Down