Skip to content
Snippets Groups Projects
Commit c3e8b69e authored by Guillaume Martres's avatar Guillaume Martres
Browse files

Reword the submission docs

parent 96378650
No related branches found
No related tags found
No related merge requests found
...@@ -3,34 +3,28 @@ ...@@ -3,34 +3,28 @@
## Local tests and grading ## Local tests and grading
Each assignment is shipped with two sets of tests: Each assignment is shipped with two sets of tests:
* The grading tests, provided as a 'black box': you can run them * The tests defined under `src/test/scala`, these are usually incomplete: we
but are not allowed to the their content. You can run them locally (= on strongly encourage you to write additional tests to exercise every aspect of
your computer) with the `runGradingTests` SBT command. You will get the your code. You can run these tests from `sbt` using the following command:
full score **if and only if** all the grading tests pass. ```shell
* The tests defined under `src/test/scala`. They can be run with the `test` test
SBT command and you can - we encourage you to - add your owns. ```
* The **grading tests**, that we use to grade your assignments, these are
We also use a Continuous Integration tool to run the grading system on the provided as a "black box": you can run them but are not allowed to see their
commits you push on gitlab (explained in the next section). You can see the content, to encourage you to write your own tests. You can run them from
result online (under the *CI/CD > Pipeline* section of your personal gitlab `sbt` using the following command:
repository) and check if your code compiles and runs properly on the grading ```shell
environment. runGradingTests
```
![](images/pipeline-tab.png)
(remember that you can always put `~` before an sbt command to automatically
The grading pipeline contains two steps: re-run it when you save a file)
* *compile*: your code does not compile for grading if the job fail.
* *grade*: the job results in a warning if you do not get the maximum grade
(10.00/10.00)
You can click on the jobs to see the logs:
![](images/pipeline-details.png)
![](images/pipeline-logs.png)
## Committing and pushing your code ## Committing and pushing your code
**You need to push your code to gitlab to receive a grade. If you forget, your
grade will be zero.**
If you've read the first few chapters of [Git If you've read the first few chapters of [Git
book](https://git-scm.com/book/en/v2) as recommended, you must already be book](https://git-scm.com/book/en/v2) as recommended, you must already be
familiar with committing and pushing, but let's go over the basics once again: familiar with committing and pushing, but let's go over the basics once again:
...@@ -65,13 +59,22 @@ Note that there are also graphical user interfaces to interact with git, for ...@@ -65,13 +59,22 @@ Note that there are also graphical user interfaces to interact with git, for
example [VSCode has built-in git example [VSCode has built-in git
support](https://code.visualstudio.com/docs/editor/versioncontrol#_git-support). support](https://code.visualstudio.com/docs/editor/versioncontrol#_git-support).
### Submission Once you've pushed your code, you can see the result online (under the *CI/CD >
Pipeline* section of your personal gitlab repository) and check if your code
compiles and runs properly on the grading environment.
![](images/pipeline-tab.png)
You only have to make sure **your commits are pushed to gitlab** and that The grading pipeline contains two steps:
**your code is properly graded in the CI** (i.e. you get a grade): your branch * *compile*: your code does not compile for grading if the job fail.
will be automatically snapshotted under the `submission-$ASSIGNMENT` tag at the * *grade*: the job results in a warning if you do not get the maximum grade
deadline. Note that you cannot create, delete or update the `submission-*` tags (10.00/10.00)
by yourself.
You can click on the jobs to see the logs:
![](images/pipeline-details.png)
![](images/pipeline-logs.png)
## Troubleshooting ## Troubleshooting
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment