CLASSDATA doesn't work on ADVPL
endersonmaia opened this issue · 0 comments
endersonmaia commented
Since the TTestResult saves the result os the tests that was run by TTest (TTestCase, TTestSuite) on CLASSDATA variables, and ADVPL consider CLASSDATA the same as DATA variables, it's working on Harbour but not working on ADVPL.
On ADVPL, only the last test case that was run on a specific test suite has its tests' result shown.
My proposal is to extract this CLASSDATA variables to an external class that will store all the test cases' results.
Or implement this CLASSDATA behavior in ADVPL via macro or STATIC var inside the class' source file.
See: https://github.com/endersonmaia/hbunit/blob/master/lib/TestResult.class.prg#L28-L32