Changes between Version 5 and Version 6 of Projects/GSoC/TestingReview/AceUnit

Jul 8, 2012, 7:58:02 AM (7 years ago)
Xiaochen Pan

/* RTEMS-based Test Result */


  • Projects/GSoC/TestingReview/AceUnit

    v5 v6  
    1313+ It provides a macro for it to run under embedded environments with memory minimized, but not 100% functional.
    1414= RTEMS-based Test Result =
     16= sp01 test =
     18[wiki:File:Aceunit_sp01.png File:Aceunit sp01.png]
     20This test result is different from the test result of testsuite sp01 with other frameworks. The reason lies in the different way the test runner is constructed. In this framework, when the tests have all passed, the control goes to the exit(0) command of the main thread. The tasks created are considered to be functions. After main thread exits, the whole process ends. The control of main thread cannot be transferred to the functions.
     22In CMock, the control can be transferred to the tasks created. The process can end only after tasks end.
     24In Cmockery, two testsuites can be constructed, where the first testsuites tests the creation of tests and the second testsuites test the deletion of RTEMS task itself. Although each test case is also considered to be functions as in AceUnit, they only exit after the functions finish execution. So, the second testsuites will only execute after the 3 tasks have finished.
     26For AceUnit, test cases in each test file is considered to be in the same fixture. They cannot be seperated as in Cmockery. So, the independence of test cases running cannot be guaranteed by AceUnit framework sometime.
     27= devfs02 test =
     29[wiki:File:Aceunit_devfs02.png File:Aceunit devfs02.png]
     31This is the screenshot when all test cases have pass.
     34= devfs02 fail test =
     36[wiki:File:Aceunit_devfs02_error.png File:Aceunit devfs02 error.png]
     38This is the screenshot when one of the test case fail. I only make this happen in order to show the output when some test have failed. The information included in the failure output includes the file name, line number, the message written in the test cases. It is a minor plus than frameworks with no concrete information written during test cases design.
     41= deviceio01 test =
     43[wiki:File:Aceunit_deviceio01.png File:Aceunit deviceio01.png]
     46= =fsrofs01 test ==
     48[wiki:File:Aceunit_fsrofs01.png File:Aceunit fsrofs01.png]
     51=  ==psx01 test===
     57===psxtmbarrier01 test===