#checker #tui #cli

bin+lib checker-tema-3-sd

An interactive checker built for the 3rd homework at the data-structures course

10 releases

0.2.1 May 25, 2023
0.2.0 May 21, 2023
0.1.7 May 21, 2023

#2853 in Command line utilities

MIT license

82KB
2K SLoC

Checker

This checker is in it's first iteration. If you found any bugs and have features you would like me to add, or any QoL ideas, contact me and I'll try to implement them as soon as I can.

What's different from all the other checkers out there is that it uses a GUI instead of the old-school text based printing of results. It can run any test individually, it shows a diff of all the results and most importantly it will run more tasks at the same time.

For this checker to run at max capacity, we recommend allocating more CPU cores to your virtual machine.

alt-text

How to use the checker

Run the by using either one of these commands. You must be in the same directory as the other checker files, otherwise it won't work. For this checker to work, you will need a terminal of at least 52x24 (width x height).

$ ./check

$ checker-tema-3-sd

# If you only want to use the text only version, add the following flag to the command

$ ./check --legacy

Keybinds

To simplify the use of the checker, you can use the following keybinds:

  • enter - when on a test, to run it
  • left-arrow or right-arrow - switch from test window to log window
  • r - runs all the tests from both tasks
  • f - runs only the failed tasks that either have crashed or they got 0 points
  • v - enables or disables valgrind globally for the tests (valgrind is enabled when the Tests window is highlighted in red)
  • c - runs the coding style checker and shows a pop-up showing all the possible problems
  • ctrl+c or q - exit the program

Source code

You can find the source code here and the crates.io page here. If you would like to contribute to the project, or open any issues, you are welcomed to help.

Dependencies

~18–32MB
~374K SLoC