Extension which adds extra features that helps with UCLL Prorgramming-2 exercises.
.
Assignments
When you open a student.py file, the assignment.md file should open automatically in preview mode in a splitted window. If you want to change this behavior, you can modify your VS Code settings under the UCLL Programming 2 section.
Assignments can be opened at anytime by right clicking a assignment.md, student.py, tests.py file in the explorer.
And clicking on Pytest VScode UCLL: Show Assignment to open a assignment.
Or if you have one of these files open you can use the command pallete Pytest VScode UCLL: Open Assignment` command to open a assignment.
Run Tests
Search for this icon in the sidebar and click on it to open the Test Explorer.
Test a folder by pressing on a parent TestItem.
Test a single item by pressing on a TestItem without children.
Test Ouput Log
To open the Test output log, simply click on the square with the greater-than sign [>] in it.
After you run the tests, you should see the test output showing in the Test output log.
Each TestItem is split into purple sections with their path displayed in the header (first line).
To minimize the information displayed in the Test Output Log, enable the show Only Result Summary setting under the UCLL Programming 2 section.
It's highly recommended to keep this setting disabled, as it can strip information from your error messages.
It can sometimes be useful when there are many smaller error messages in your Test Output Log.
View Errors
To view the error message of a failed TestItem, simply deselect it and then click on it again.
If everything works properly, the tests.py file should open and display the error that occurred.
Expected vs Actual errors which display some errors more clearly.