Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 624d34dc9a550d5f63297ce430f148a31b1a9471 (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
/*******************************************************************************
 * 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 GcovTestCLibrary {

    private static SWTWorkbenchBot bot;

    private static final String PROJECT_NAME = "Gcov_C_library_test";
    private static final String PROJECT_TYPE = "C Project";
    private static final String BIN_NAME = "libtestgcovlib.so";

    @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, BIN_NAME);
    }

    @Test
    public void openGcovSummary() throws Exception {
        GcovTest.openGcovSummary(bot, PROJECT_NAME, BIN_NAME, true);
    }

}

Back to the top