use of org.jenkinsci.plugins.MsTestInstallation 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());
}
Aggregations