Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Features and Stories

Ivan Krutov edited this page Sep 23, 2014 · 4 revisions

You can group test results by features and stories (BDD-like)

In order to group your tests by features and stories in Java, simply annotate the test suite or test case with @Features or @Stories annotations. Each of these annotations can take either a single string or a string array, because one test case can relate to several features or stories:

@Features("My Feature")
@Stories({"Story1", "Story2"})
@Test
public void myTest() {
    ...
}