I'm trying to get my head around ABLUnit - and to accomplish that goal I need docs that explain things to me.
Here's some questions I've got so far, and would like to see answers to:
I'm trying to get my head around ABLUnit - and the docs need improving to help me.
Flag this post as spam/abuse.
Thx Peter!
Where I am now:
I've copied the "working" and "test/testsuite" classes from the PDF docs into an OE and ABLUnit project.
I'm trying to run my test - and I can't find anything which tells me how to run this test...
Am I supposed to create a .p which instantiates the test suite class? What am I missing here?
Thx Peter!
Where I am now:
I've copied the "working" and "test/testsuite" classes from the PDF docs into an OE and ABLUnit project.
I'm trying to run my test - and I can't find anything which tells me how to run this test...
Am I supposed to create a .p which instantiates the test suite class? What am I missing here?
Flag this post as spam/abuse.
I have a "test suite" class that looks like this:
USING Progress.Lang.*. BLOCK-LEVEL ON ERROR UNDO, THROW. CLASS TestSuite: @TestSuite(classes = "ABLUnit.TestClass.MyClass, MyTestClass"). END CLASS.
and if I try to run that, I only get OE Mobile and OE Application as run options.
If I go to the class with the actual tests - like the following code snippet:
CLASS MyTestClass: @Test. METHOD PUBLIC VOID TestM1( ):
Then I get the ABL Unit run menu and I'm seeing some activity now.
How does the "Test suite" class fit into things?
I have a "test suite" class that looks like this:
USING Progress.Lang.*.
BLOCK-LEVEL ON ERROR UNDO, THROW.
CLASS TestSuite:
@TestSuite(classes = "ABLUnit.TestClass.MyClass, MyTestClass").
END CLASS.
and if I try to run that, I only get OE Mobile and OE Application.
If I go to the class with the actual tests - like so:
CLASS MyTestClass:
@Test.
METHOD PUBLIC VOID TestM1( ):
I get the ABL Unit menu and I'm seeing some activity now.
How does the "Test suite" class fit into things?
Flag this post as spam/abuse.
How is the test suite class supposed to be used if the ABL Unit project doesn't acknowledge and run the class?
As it turns out, the @TestSuite() annotations need to be outside the CLASS/END CLASS definition in order to be run by the ABL Unit test.
I had it run an existing test class I've been playing with, and changed some conditions so it'd fail - and it hasn't failed....
So now I'm puzzled again....
Figured it out...