blob: 60923d866e5f952a547f2153674489f6e571bae0 (
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
|
/*******************************************************************************
* Copyright (c) 2011 STMicroelectronics.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Xavier Raynaud <xavier.raynaud@st.com> - initial API and implementation
*******************************************************************************/
package org.eclipse.linuxtools.internal.gcov.test;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(SWTBotJunit4ClassRunner.class)
public class GcovTestCPP {
private static SWTWorkbenchBot bot;
private static final String PROJECT_NAME = "Gcov_CPP_test";
private static final String PROJECT_TYPE = "C++ Project";
@BeforeClass
public static void beforeClass() throws Exception {
bot = GcovTest.init(PROJECT_NAME, PROJECT_TYPE);
}
@AfterClass
public static void afterClass() {
GcovTest.cleanup(bot);
}
@Test
public void openGcovFileDetails() throws Exception {
GcovTest.openGcovFileDetails(bot, PROJECT_NAME);
}
@Test
public void openGcovSummary() throws Exception {
GcovTest.openGcovSummary(bot, PROJECT_NAME, false);
}
@Test
public void testGcovSummaryByLaunch() {
GcovTest.openGcovSummaryByLaunch(bot, PROJECT_NAME);
}
}
|