We present a framework for the automatic testing of C Pro- gramming assignments that is based on Unit tests and Aspect programming. Students are required to implement a set of C functions and are given each function’s prototype. Teachers are required to write unit tests for each function, a ”reference implementation” of each function and a feedback message for each test failed. The system applies the unit tests to the code and replaces a failing function with the corresponding refer- ence implementation to test also functions depending on the failed one. We are developing the system while testing it on the home- works submitted for two courses: ”Programming 2” and ”Pro- gramming Laboratory”, delivered during the second term of first year of our Computer Science MS degree. We present the design of the system and the issues solved so far to test 4 homeworks (a total of 186 tests run over 28 implemented functions).
Automatic correction of C programming exercises through Unit-Testing and Aspect-Programming / F., Bagnoli; Sterbini, Andrea; Temperini, Marco. - (2004), pp. 97-101. (Intervento presentato al convegno International Conference on Education and Information Systems, Technologies and Applications (EISTA 2004) tenutosi a Orlando, USA. nel July 21-24 2004).
Automatic correction of C programming exercises through Unit-Testing and Aspect-Programming
STERBINI, Andrea;TEMPERINI, Marco
2004
Abstract
We present a framework for the automatic testing of C Pro- gramming assignments that is based on Unit tests and Aspect programming. Students are required to implement a set of C functions and are given each function’s prototype. Teachers are required to write unit tests for each function, a ”reference implementation” of each function and a feedback message for each test failed. The system applies the unit tests to the code and replaces a failing function with the corresponding refer- ence implementation to test also functions depending on the failed one. We are developing the system while testing it on the home- works submitted for two courses: ”Programming 2” and ”Pro- gramming Laboratory”, delivered during the second term of first year of our Computer Science MS degree. We present the design of the system and the issues solved so far to test 4 homeworks (a total of 186 tests run over 28 implemented functions).I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.