|
4 | 4 | <groupId>edu.columbia.cs.psl.chroniclerj</groupId> |
5 | 5 | <artifactId>ChroniclerJ</artifactId> |
6 | 6 | <version>0.43-SNAPSHOT</version> |
| 7 | + <properties> |
| 8 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 9 | + </properties> |
7 | 10 | <build> |
8 | 11 | <plugins> |
9 | 12 | <plugin> |
|
40 | 43 | <pattern>org.objectweb</pattern> |
41 | 44 | <shadedPattern>edu.columbia.cs.psl.chroniclerj.org.objectweb</shadedPattern> |
42 | 45 | </relocation> |
43 | | - <!-- <relocation> |
44 | | - <pattern>org.kxml2</pattern> |
45 | | - <shadedPattern>edu.columbia.cs.psl.chroniclerj.org.kxml</shadedPattern> |
46 | | - </relocation> --> |
| 46 | + <!-- <relocation> <pattern>org.kxml2</pattern> <shadedPattern>edu.columbia.cs.psl.chroniclerj.org.kxml</shadedPattern> |
| 47 | + </relocation> --> |
47 | 48 | <relocation> |
48 | 49 | <pattern>org.objenesis</pattern> |
49 | 50 | <shadedPattern>edu.columbia.cs.psl.chroniclerj.org.objenesis</shadedPattern> |
50 | 51 | </relocation> |
51 | | - <!-- <relocation> |
52 | | - <pattern>org.xmlpull</pattern> |
53 | | - <shadedPattern>edu.columbia.cs.psl.chroniclerj.org.xmlpull</shadedPattern> |
54 | | - </relocation> |
55 | | - <relocation> |
56 | | - <pattern>com.thoughtworks</pattern> |
57 | | - <shadedPattern>edu.columbia.cs.psl.chroniclerj.com.thoughtworks</shadedPattern> |
58 | | - </relocation> --> |
| 52 | + <!-- <relocation> <pattern>org.xmlpull</pattern> <shadedPattern>edu.columbia.cs.psl.chroniclerj.org.xmlpull</shadedPattern> |
| 53 | + </relocation> <relocation> <pattern>com.thoughtworks</pattern> <shadedPattern>edu.columbia.cs.psl.chroniclerj.com.thoughtworks</shadedPattern> |
| 54 | + </relocation> --> |
59 | 55 | <relocation> |
60 | 56 | <pattern>org.apache.log4j</pattern> |
61 | 57 | <shadedPattern>edu.columbia.cs.psl.chroniclerj.org.apache.log4j</shadedPattern> |
62 | | - </relocation> |
| 58 | + </relocation> |
63 | 59 | </relocations> |
64 | 60 | <minimizeJar>false</minimizeJar> |
65 | 61 | </configuration> |
|
72 | 68 | <version>2.19</version> |
73 | 69 | <executions> |
74 | 70 | <execution> |
75 | | - <id>integration-test</id> |
| 71 | + <id>record-tests</id> |
| 72 | + <configuration> |
| 73 | + <runOrder>alphabetical</runOrder> |
| 74 | + <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| 75 | + <reportsDirectory>${project.build.directory}/failsafe-reports-record</reportsDirectory> |
| 76 | + <includes> |
| 77 | + <include>**/*ITCase.java</include> |
| 78 | + </includes> |
| 79 | + <argLine> |
| 80 | + -javaagent:${project.build.directory}/${project.build.finalName}.jar=failsafe,quiet,alwaysExport,whitelist=edu/columbia/cs/psl/test</argLine> |
| 81 | + <reuseForks>false</reuseForks> |
| 82 | + </configuration> |
| 83 | + <goals> |
| 84 | + <goal>integration-test</goal> |
| 85 | + <goal>verify</goal> |
| 86 | + </goals> |
| 87 | + </execution> |
| 88 | + <execution> |
| 89 | + <id>replay-tests</id> |
76 | 90 | <configuration> |
77 | | - <!-- <jvm>${project.build.directory}/jre-inst-int-untaggedwrappers/bin/java</jvm> --> |
| 91 | + <runOrder>alphabetical</runOrder> |
| 92 | + <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| 93 | + <reportsDirectory>${project.build.directory}/failsafe-reports-replay</reportsDirectory> |
78 | 94 | <includes> |
79 | 95 | <include>**/*ITCase.java</include> |
80 | 96 | </includes> |
81 | | - <argLine>-Xbootclasspath/p:${project.build.directory}/${project.build.finalName}.jar |
82 | | - -javaagent:${project.build.directory}/${project.build.finalName}.jar=failsafe,alwaysExport</argLine> |
83 | | - <reuseForks>false</reuseForks> |
| 97 | + <argLine> |
| 98 | + -javaagent:${project.build.directory}/${project.build.finalName}.jar=replay,failsafe,whitelist=edu/columbia/cs/psl/test</argLine> |
| 99 | + <reuseForks>false</reuseForks> |
84 | 100 | </configuration> |
85 | 101 | <goals> |
86 | 102 | <goal>integration-test</goal> |
87 | 103 | <goal>verify</goal> |
88 | 104 | </goals> |
89 | 105 | </execution> |
90 | 106 | </executions> |
| 107 | + </plugin> |
| 108 | + <plugin> |
| 109 | + <groupId>net.jonbell.surefire</groupId> |
| 110 | + <artifactId>surefire-outputcomparison</artifactId> |
| 111 | + <executions> |
| 112 | + <execution> |
| 113 | + <id>examine-test-output</id> |
| 114 | + <phase>post-integration-test</phase> |
| 115 | + <goals> |
| 116 | + <goal>analyze</goal> |
| 117 | + </goals> |
| 118 | + </execution> |
| 119 | + </executions> |
91 | 120 | <configuration> |
| 121 | + <testResultSources> |
| 122 | + <testResultSource> |
| 123 | + <name>chroniclerj-record</name> |
| 124 | + <directory>${project.build.directory}/failsafe-reports-record</directory> |
| 125 | + </testResultSource> |
| 126 | + <testResultSource> |
| 127 | + <name>chroniclerj-replay</name> |
| 128 | + <directory>${project.build.directory}/failsafe-reports-replay</directory> |
| 129 | + </testResultSource> |
| 130 | + </testResultSources> |
92 | 131 | </configuration> |
93 | 132 | </plugin> |
94 | 133 | <plugin> |
|
105 | 144 | </plugin> |
106 | 145 | </plugins> |
107 | 146 | </build> |
108 | | - |
109 | 147 | <dependencies> |
| 148 | + <dependency> |
| 149 | + <groupId>net.jonbell.surefire</groupId> |
| 150 | + <artifactId>surefire-outputcomparison</artifactId> |
| 151 | + <version>1.0-SNAPSHOT</version> |
| 152 | + </dependency> |
110 | 153 | <dependency> |
111 | 154 | <groupId>junit</groupId> |
112 | 155 | <artifactId>junit</artifactId> |
|
139 | 182 | <version>1.2.16</version> |
140 | 183 | </dependency> |
141 | 184 | </dependencies> |
| 185 | + <repositories> |
| 186 | + <repository> |
| 187 | + <id>jb.snapshots</id> |
| 188 | + <name>jons snapshots</name> |
| 189 | + <url>https://maven.jonbell.net/repository/snapshots</url> |
| 190 | + </repository> |
| 191 | + </repositories> |
142 | 192 | <distributionManagement> |
143 | 193 | <snapshotRepository> |
144 | | - <id>psl.internal</id> |
145 | | - <name>PSL Internal Repository</name> |
146 | | - <url>http://ase.cs.columbia.edu:8282/repository/snapshots</url> |
| 194 | + <id>jb.snapshots</id> |
| 195 | + <name>JB Snapshots Repository</name> |
| 196 | + <url>https://maven.jonbell.net/repository/snapshots</url> |
147 | 197 | </snapshotRepository> |
148 | 198 | </distributionManagement> |
149 | 199 | </project> |
0 commit comments