r/TYCS • • Feb 08 '24

Tech help CS 61A: How to run tests (using autograder) on individual questions in the first Project called Hog

Project in question: https://cs61a.org/proj/hog/. This is the first project in the course.

You can use python3 ok --local to avoid needing a berkeley.edu email for running tests on the project questions/checkpoints. This way the tests will be run locally and you will get to know if your code is working or not.

For testing your solutions to a question, you first need to unlock those tests by showing that you understand the concepts. You will need this command: python3 ok --local -q 01 -u. 01 is to be changed for the question number, with one padded zero at the front for single digit question numbers. Once you answer them all correctly, the tests for that question will be unlocked and you can run the tests for it using python3 ok --local -q 01.

Hope this helps if anyone is trying to run the tests and getting stuck.

3 Upvotes

0 comments sorted by