Skip to content

Commit 90b3e9c

Browse files
committed
Add local dev tips
1 parent 0535033 commit 90b3e9c

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,22 @@ Upon completion of the grading process, the `autograder-submit-feedback`
3333
function is called with grading results, again relying on the GitHub OIDC token
3434
to authenticate.
3535

36-
## Transpile before pushing
36+
## Development tips
37+
38+
### Run the grader locally
39+
40+
To test changes to the grader, you can run it locally without invoking GitHub
41+
Actions or interfacing with Pawtograder at all:
42+
43+
```bash
44+
npx tsimp src/grader/main.ts -s /full/path/to/solution/repo -u /full/path/to/submission/repo
45+
```
46+
47+
A significant amount of output will be printed to the console, including a
48+
pretty-printed JSON object with the results of the grading that would be passed
49+
along to Pawtograder.
50+
51+
### Transpile before pushing
3752

3853
GitHub Actions will only run JS, so we need to transpile before pushing:
3954

0 commit comments

Comments
 (0)