Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f183034b6096723b2a309edd699652c361e7fb55 (plain) (blame)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?xml version="1.0" encoding="UTF-8"?>
<project
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
    xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.eclipse.tcf</groupId>
        <artifactId>tcf-parent</artifactId>
        <version>1.3.0-SNAPSHOT</version>
        <relativePath>../../../pom.xml</relativePath>
    </parent>

    <version>1.3.0.qualifier</version>
    <artifactId>org.eclipse.tcf.debug.test</artifactId>
    <packaging>eclipse-test-plugin</packaging>

    <properties>
        <jacoco.append>true</jacoco.append>
        
        <ui.test.vmargs>-Xmx512m -XX:MaxPermSize=256m</ui.test.vmargs>
    </properties>

    <profiles>
        <profile>
            <id>tests</id>

            <build>
                <plugins>
                    <plugin>
                        <groupId>org.eclipse.tycho</groupId>
                        <artifactId>tycho-surefire-plugin</artifactId>
                        <version>${tycho-version}</version>
                        <configuration>
							<useUIHarness>true</useUIHarness>
							<useUIThread>false</useUIThread>
							<product>org.eclipse.platform.ide</product>
							<argLine>${tycho.testArgLine} ${ui.test.vmargs}</argLine>
                            <application>org.eclipse.ui.ide.workbench</application>
							<testFailureIgnore>true</testFailureIgnore>
							<showEclipseLog>true</showEclipseLog>
                            <testRuntime>p2Installed</testRuntime>
							<!--
							<debugPort>8003</debugPort>
							-->
				    
						    <systemProperties>
						        <osgi.debug>${basedir}/tracing/.options</osgi.debug>
						        <tcf.agent.path>${basedir}/.agent/agent</tcf.agent.path>
						    </systemProperties>

                            <includes>
                                <include>**/BreakpointsTest.*</include>
                                <include>**/TransactionTests.*</include>
                                <include>**/BreakpointDetailPaneTest.*</include>
                                <include>**/BreakpointsViewTest.*</include>
                                <include>**/RunControlCMTest.*</include>
                                <include>**/StackTraceCMTest.*</include>                         
                                <include>**/SampleTest.*</include>
                                <include>**/CacheTests.*</include>
                                <include>**/QueryTests.*</include>
                                <include>**/RangeCacheTests.*</include>
                            </includes>
                        </configuration>
                    </plugin>
                    
                    <plugin>
                        <groupId>org.codehaus.gmaven</groupId>
                        <artifactId>gmaven-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>validate</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <source>
                                    project.properties['qualified.bundle.version'] = project.properties['unqualifiedVersion'].replace('qualifier', project.properties['buildQualifier'])
                                    </source>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>generate-report</id>
                                <phase>post-integration-test</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
                                        <typedef resource="org/jacoco/ant/antlib.xml"/>
                                        <echo message="Coverage report"/>
                                        <report>
                                            <executiondata>
                                                <fileset dir="${project.build.directory}" includes="jacoco.exec"/>
                                            </executiondata>
                                            <structure name="Code Coverage - TCF">
                                                <group name="org.eclipse.tcf">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf/src"/>
                                                    </sourcefiles>
                                                </group>
                                                
                                                <group name="org.eclipse.tcf.core">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.core/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.core/src"/>
                                                    </sourcefiles>
                                                </group>
                                                
                                                <group name="org.eclipse.tcf.debug">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.debug/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.debug/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.debug.ui">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.debug.ui/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.debug.ui/src"/>
                                                    </sourcefiles>
                                                </group>
                                                
                                                <group name="org.eclipse.tcf.cdt.ui">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.cdt.ui/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.cdt.ui/src"/>
                                                    </sourcefiles>
                                                </group>

                                            </structure>
                                
                                            <html destdir="${project.build.directory}/coverage"
                                                  footer="Code Coverage Report for TCF ${qualified.bundle.version}"
                                                  locale="de"/>
                                            <csv destfile="${project.build.directory}/coverage/coverage.csv"/>
                                            <xml destfile="${project.build.directory}/coverage/coverage.xml"/>
                                        </report>
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                        <dependencies>
                            <dependency>
                                <groupId>org.jacoco</groupId>
                                <artifactId>org.jacoco.ant</artifactId>
                                <version>${jacoco-version}</version>
                            </dependency>
                        </dependencies>
                    </plugin>

                </plugins>
            </build>
        </profile>
    </profiles>
</project>

Back to the top