|
Project Information
Members
Featured
Downloads
Links
|
This library replaces test tools like Concordion and Fit by allowing your tests to stay maintainable (i.e refactoring support in you favourite IDE) while still producing human readable documentation. Currently this library supports 3 levels of usage:
ExampleThe simplest example would be to add the JUnit @RunWith attribute specifying the SpecRunner class to your Test class. @RunWith(SpecRunner.class)
public class ExampleTest {
@Test
public void reallySimpleExample() throws Exception {
assertThat("The quick brown fox".contains("fox"), is(true));
}
}If you ran this test you would see the following in STOUT: Html output: /tmp/com/googlecode/yatspec/junit/ExampleTest.html If you opened the HTML file you would see:
So lets quickly explain what has happened:
Maven repo => http://repo.bodar.com/ |