Skip to content

ClickerMonkey/Testility

Repository files navigation

testility

Stable

A small Java library with a few classes I've used in other projects in JUnit tests.

Features

  • You can order test methods (sometimes test methods can execute in random order)

Documentation

Example

@RunWith(value=OrderedRunner.class)
public class TestOrdered extends BaseTest 
{
    @Test @Ordered(index = 3)
    public void test3() {
        broadcast();
    }
    @Test @Ordered(index = 2)
    public void test2a() {
        broadcast();
    }
    @Test @Ordered(index = 2)
    public void test2b() {
        broadcast();
    }
    @Test @Ordered(index = 1)
    public void test1()  {
        broadcast();
    }    
}
// IN test1
// IN test2a
// IN test2b
// IN test3

Builds

Projects using testility:

Dependencies

  • JUnit

About

A small Java library with a few classes I've used in other projects in JUnit tests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages