-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
executable file
·50 lines (40 loc) · 1.25 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
This small utility reads story cards information from Mingle and test
cases information from junit tests, generate test coverage information
for them.
To use it, you have to add it-coverage-1.0-SNAPSHOT.jar to your test
project, then use @Story(storyNumber) to annotate your test class or
test case to build the relationship between your story card and test
cases. For example:
/**
* @story 2
*/
public void test1() {
}
or
/**
* @story 2
*/
public class Story1StubTest {
public void test1() {
}
public void test2() {
}
}
Then if your mingle story card has the all the acceptance criteria at the end of the description, formatted like this:
h1. 验收策略
# 正常路径1
# 正常路径2
# 异常路径1
...
You can then use the maven plugin to generate a html report:
<plugin>
<groupId>com.thoughtworks.maven</groupId>
<artifactId>itcoverage-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
<resourceUrl>http://localhost:8080/api/v2/projects/testProject/cards.xml?page=all&filters[]=[Type][is][Story]&sort=number&order=ASC</resourceUrl>
<username>username</username>
<password>password</password>
<testPattern>".*Test.*"</testPattern>
</configuration>
</plugin>