summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tb3/AffectedTB3Tests.java
blob: 6736bc399028fcda653a29372e9eff977861d2ec (plain)
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
package com.vaadin.tests.tb3;

import org.junit.runner.RunWith;
import org.junit.runners.model.InitializationError;

import com.vaadin.tests.tb3.AffectedTB3Tests.AffectedTB3TestSuite;

/**
 * Test suite that runs tests from test classes which have changes or have
 * similar package name compare the the changes files in the current workspace.
 * If there are no changes in the workspace, it will run the changes to test
 * classes introduced in the HEAD commit.
 * 
 * @author Vaadin Ltd
 */
@RunWith(AffectedTB3TestSuite.class)
public class AffectedTB3Tests {

    public static class AffectedTB3TestSuite extends TB3TestSuite {

        public AffectedTB3TestSuite(Class<?> klass) throws InitializationError {
            super(klass, AbstractTB3Test.class, "com.vaadin.tests",
                    new String[] { "com.vaadin.tests.integration" },
                    new AffectedTB3TestLocator());
        }
    }
}