Search in sources :

Example 1 with DescriptorImpl

use of org.jenkinsci.plugins.MsTestInstallation.DescriptorImpl in project configuration-as-code-plugin by jenkinsci.

the class MSTestRunnerTest method configure_mstestrunner.

@Test
@ConfiguredWithReadme("mstestrunner/README.md")
public void configure_mstestrunner() {
    final DescriptorImpl msTestRunnerDescriptor = ExtensionList.lookupSingleton(DescriptorImpl.class);
    assertNotNull(msTestRunnerDescriptor);
    assertEquals(1, msTestRunnerDescriptor.getInstallations().length);
    final MsTestInstallation msTestRunnerInstallation = msTestRunnerDescriptor.getInstallations()[0];
    assertEquals("MSTest test", msTestRunnerInstallation.getName());
    assertEquals("C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\MSTest.exe", msTestRunnerInstallation.getHome());
    assertEquals("/category:SmokeTests", msTestRunnerInstallation.getDefaultArgs());
    assertTrue(msTestRunnerInstallation.getOmitNoIsolation());
}
Also used : MsTestInstallation(org.jenkinsci.plugins.MsTestInstallation) DescriptorImpl(org.jenkinsci.plugins.MsTestInstallation.DescriptorImpl) Test(org.junit.Test) ConfiguredWithReadme(io.jenkins.plugins.casc.misc.ConfiguredWithReadme)

Aggregations

ConfiguredWithReadme (io.jenkins.plugins.casc.misc.ConfiguredWithReadme)1 MsTestInstallation (org.jenkinsci.plugins.MsTestInstallation)1 DescriptorImpl (org.jenkinsci.plugins.MsTestInstallation.DescriptorImpl)1 Test (org.junit.Test)1