Skip to content

ggkochanski/itest

Repository files navigation

Java ITest Framework is designed to unit testing by data (without additional source code). Oriented on re-usage of test data definitions. Applicable for shallow (dynamic proxies) or deep (selected implementations) tests. You define tests by composing initial data and expected result data.

Understanding the scope of source code change at early stage is a key of effective product quality management.

@ITests(@ITest(name="test1", init = "A:[3,16]", verify = "R:19"))
public int sum(int a, int b) {
    return a + b;
}

or by external file:

sum(*):{
    test1:{
        init:{
            A:[3,16]
        },
        verify:{R:19}
    }
}
    Assert.assertEquals("", executor.performTestsFor(SimpleExample.class));

For more details visit ITest project Wiki page.