AxUnit2

From Axaptapedia

Jump to: navigation, search

Primitive UnitTesting framework for Ax3 | download (4K) |

Image:Axunit2.png

[edit] Example

class Test_Simple extends AxUnitTestCase
{
}
void testTrivial()
{
;
    this.assertEquals(2*2, 4);
}

[edit] Installation

[edit] usage

  • create a class extending AxUnitTestCase
  • add a method named testXXX
  • use assertXXX methods to test various conditions
  • in you want a common environment (fixture) in multiple tests, add instance variables to the class and setup them an the setup method, ad finalize tham in the tearDown method if nessesary
  • run tests via addins menu (right click on the AOT node containing tests - Addins - AxUnit - run tests)
Personal tools