Skip to content

Cheatsheet

Task creation

Create a task skeleton:

pisek init

Task testing

Test the task:

pisek test

Test only specific solutions:

pisek test solutions solution1 solution2 ...

Test only generator:

pisek test generator

Testing with flags

Show file contents on failure:

pisek test -C

Override time limit for solutions to 3 seconds:

pisek test -t 3

Test all inputs (even when not necessary):

pisek test -a

Be verbose:

pisek test -v

Do final pre-production check. Test all inputs, be verbose and interpret warnings as failures:

pisek test -a -v --strict

Clean

Clean pisek cache and created files (executables in build/ and test data in tests/):

pisek clean

Visualization

Visualize all solutions and their closeness to time limit. Calculate valid time limits:

pisek test -af --testing-log
pisek visualize | less -R

Configs

Update config to newest version:

pisek config update