Skip to content

Commit

Permalink
Merge pull request #18 from roeeyn/updating-readme
Browse files Browse the repository at this point in the history
Added example judge0 script
  • Loading branch information
roeeyn authored May 30, 2022
2 parents 3d65aff + 59cfa16 commit 965cea3
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Challenge Generator

[![npm version](https://badge.fury.io/js/@roeeyn%2Fchallenge-generator.svg)](https://badge.fury.io/js/@roeeyn%2Fchallenge-generator)

![Demo GIF](https://media.giphy.com/media/E6XxTAGmDYXgQK6Hph/giphy.gif)
Expand All @@ -20,6 +21,7 @@
- [Test Framework File](#test-framework-file)
- [Run File](#run-file)
- [Advanced Usage](#advanced-usage)
- [Judge0 Submission](#judge0-submission)
- [Future Roadmap](#future-roadmap)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->
Expand Down Expand Up @@ -125,7 +127,25 @@ We can filter most of the params we want the challenge to contain. These are the
| -v, --verbose || Prints debugging information | N/A |
| -h, --help || Prints this information | N/A |

## Judge0 Submission

We created a script ([judge0-submissioner](examples/judge0-submissioner.sh)) that can help you testing the submissions into judge0 easily, you can find it in the [examples](examples/) folder. The basic usage of this script is the following:

```bash
# Maybe you need to give execution access
chmod +x ./examples/judge0-submissioner.sh

# Set the judge0 token (auth, not user)
export JUDGE0_AUTH_TOKEN='YOUR_AUTH_TOKEN'

# Submit the challenge solution and the extension (py or js)
./examples/judge0-submissioner.sh your_challenge_directory your_lang_extension

# Real example
./examples/judge0-submissioner.sh ./challenge-proper-modulo-operator js
```

## Future Roadmap

- Create script to upload files to judge0, maybe brew.
- Improve Judge0 submissioner to a better CLI.
- Warn the user if some unexpected element is present in the tests.

0 comments on commit 965cea3

Please sign in to comment.