Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>pytest-vscode-ucllNew to Visual Studio Code? Get it now.

pytest-vscode-ucll

MrFusiion

|
54 installs
| (1) | Free
Run pytest for programming-2
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PyTest For UCLL Programming-2 exercises

Extension which adds extra features that helps with UCLL Prorgramming-2 exercises.

Preview.


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.
Assignment Setting

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. Open Assigment Context Menu

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. Open Assignemt Command Pallete


Run Tests

Search for this icon Test Explorer Icon in the sidebar and click on it to open the Test Explorer.

Test a folder by pressing on a parent TestItem.

TestItem Folder

Test a single item by pressing on a TestItem without children.

TestItem Item


Test Ouput Log

To open the Test output log, simply click on the square with the greater-than sign [>] in it.

Open Test Output Log

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).

Test Output Log

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.

Summary Setting

View Errors

To view the error message of a failed TestItem, simply deselect it and then click on it again.

Preview Failed Test

If everything works properly, the tests.py file should open and display the error that occurred.

Failed Test Ouput

Expected vs Actual errors which display some errors more clearly.

Actual VS Expected Error


Feedback

[UCLL Discord Server]: Jesse
[Discord Username]: MrFusiion#1125

If you encounter any bugs, please open a pull request or message me via the information above.

If you have idee's on how to improve the tool/extension send me a message via the information above.


TODO

  • [X] Display failed test output
  • [X] Optimize
  • [X] Auto open assigment went student.py file opens.
  • [X] Add Configuration settings.
  • [X] Show error on tested files.
  • [X] Add OnDidDelete listener for TestProvider.
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft