What is homework self checking?
- most assignments will be graded using a computer program
- we have made this computer program available to the students so they can check their work before submitting it
Why use the homework self checking tool?
- so you can know if you are on the right track while doing your homework assignments
- a side note:
- what you are essentially doing is test driven development (TDD) (yes, there are programs that test programs)
- you are writing programs that fulfills certain requirements (or tests)
- typically with TDD, you will be writing the tests and the programs, whereas, in our case, the graders have written the tests for your programs to be built against
- TDD is an industry best practice
- there are other flavors/extensions of TDD such as behavior driven development (BDD)
How to use the homework self checking tool?
- syntax:
ruby ~/ee160_scripts/grade check ASSIGNMENT UH_USERNAME
- example:
ruby ~/ee160_scripts/grade check 02_1 zhaol
- the homework self checking tool will print out a report (e.g. zhaol_02_1.report to show you your rough score as well as which criterion was not satisfied
- you can modify your assignment and rerun the self checking program as many times as you want or need
- ensure you are running the above command in the directory with your assignment files
- for example, if checking homework assignment 02_1:
- please make sure you are in the correct folder
- when you issue
pwd
, you should get/home/ubuntu/workspace/ee160/homeworks/02_1
- when you issue
- please make sure the folder has your assignment files
- when you issue
ls
, you should seeUSERNAME_02_1.c
(e.g.zhaol_02_1.c
)
- when you issue
- please make sure you are in the correct folder
- This video walks through how to self check your assignment: How to Self Check A Program