Search in sources :

Example 6 with Node

use of org.jenkinsci.test.acceptance.po.Node in project acceptance-test-harness by jenkinsci.

the class CheckStylePluginTest method should_group_warnings_by_module.

/**
 * Builds a multi-module maven project and checks that warnings are grouped by module.
 */
// TODO: Check module details
@Test
public void should_group_warnings_by_module() {
    MavenModuleSet job = createMavenJob(CHECKSTYLE_PLUGIN_ROOT + "maven_multi_module", "clean package checkstyle:checkstyle", CheckStyleMavenSettings.class, new NullConfigurator<>());
    Node slave = createSlaveForJob(job);
    Build build = buildSuccessfulJobOnSlave(job, slave);
    assertThatCheckStyleResultExists(job, build);
    build.open();
    CheckStyleAction checkstyle = new CheckStyleAction(build);
    checkstyle.open();
    assertThat(checkstyle.getNumberOfNewWarnings(), is(24));
    assertThatModulesTabIsCorrectlyFilled(checkstyle);
}
Also used : CheckStyleAction(org.jenkinsci.test.acceptance.plugins.checkstyle.CheckStyleAction) Build(org.jenkinsci.test.acceptance.po.Build) Node(org.jenkinsci.test.acceptance.po.Node) MavenModuleSet(org.jenkinsci.test.acceptance.plugins.maven.MavenModuleSet) Test(org.junit.Test)

Aggregations

Node (org.jenkinsci.test.acceptance.po.Node)6 Test (org.junit.Test)6 FreeStyleJob (org.jenkinsci.test.acceptance.po.FreeStyleJob)4 AbstractJUnitTest (org.jenkinsci.test.acceptance.junit.AbstractJUnitTest)3 Build (org.jenkinsci.test.acceptance.po.Build)3 TestActivation (org.jenkinsci.test.acceptance.junit.TestActivation)2 WithCredentials (org.jenkinsci.test.acceptance.junit.WithCredentials)2 WithPlugins (org.jenkinsci.test.acceptance.junit.WithPlugins)2 Issue (org.jvnet.hudson.test.Issue)2 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)1 CheckStyleAction (org.jenkinsci.test.acceptance.plugins.checkstyle.CheckStyleAction)1 DashboardView (org.jenkinsci.test.acceptance.plugins.dashboard_view.DashboardView)1 MavenModuleSet (org.jenkinsci.test.acceptance.plugins.maven.MavenModuleSet)1 OpenstackOneOffSlave (org.jenkinsci.test.acceptance.plugins.openstack.OpenstackOneOffSlave)1 MatrixBuild (org.jenkinsci.test.acceptance.po.MatrixBuild)1 MatrixProject (org.jenkinsci.test.acceptance.po.MatrixProject)1 MatrixRun (org.jenkinsci.test.acceptance.po.MatrixRun)1 Slave (org.jenkinsci.test.acceptance.po.Slave)1 StringParameter (org.jenkinsci.test.acceptance.po.StringParameter)1