Skip to content
Snippets Groups Projects
Commit 031faf3e authored by tuhe's avatar tuhe
Browse files

Moss integration and Hinting

parent 44dd8890
Branches
No related tags found
No related merge requests found
...@@ -377,7 +377,7 @@ if __name__ == "__main__": ...@@ -377,7 +377,7 @@ if __name__ == "__main__":
``` ```
When students run this homework it will fail and display the hints from the two methods: When students run this homework it will fail and display the hints from the two methods:
![alt text|small](https://gitlab.compute.dtu.dk/tuhe/unitgrade_private/-/raw/main/docs/hints.png) ![alt text|small](https://gitlab.compute.dtu.dk/tuhe/unitgrade_private/-/raw/master/docs/hints.png)
What happens behind the scenes is that a code-coverage tool is run on the instructors computer What happens behind the scenes is that a code-coverage tool is run on the instructors computer
to determine which methods are actually used in solving a problem, and then the hint-texts of those methods (and none other) are to determine which methods are actually used in solving a problem, and then the hint-texts of those methods (and none other) are
......
...@@ -14,7 +14,7 @@ if __name__ == "__main__": ...@@ -14,7 +14,7 @@ if __name__ == "__main__":
k = os.path.relpath(file, "../examples").replace(os.sep, "_").replace(".", "_") k = os.path.relpath(file, "../examples").replace(os.sep, "_").replace(".", "_")
data[k] = f.read() data[k] = f.read()
data['resources'] = "https://gitlab.compute.dtu.dk/tuhe/unitgrade_private/-/raw/main" data['resources'] = "https://gitlab.compute.dtu.dk/tuhe/unitgrade_private/-/raw/master"
with open("README.jinja.md", 'r') as f: with open("README.jinja.md", 'r') as f:
s = jinja2.Environment(loader=jinja2.FileSystemLoader([".", "../example"])).from_string(f.read()).render(data) s = jinja2.Environment(loader=jinja2.FileSystemLoader([".", "../example"])).from_string(f.read()).render(data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment