Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 0eea908c9c14682aedf1cea1296d468d03b8ac71 (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
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