提交 d2b16af4 编写于 作者: K Kohsuke Kawaguchi

Automatically execute the CLI sanity check for plugins

上级 dc716da1
......@@ -23,6 +23,7 @@
*/
package org.jvnet.hudson.test;
import hudson.cli.CLICommand;
import junit.framework.TestSuite;
import java.io.File;
......@@ -53,7 +54,9 @@ public class PluginAutomaticTestBuilder {
File outputDirectory = new File((String)params.get("outputDirectory"));
suite.addTest(JellyTestSuiteBuilder.build(outputDirectory,toBoolean(params.get("requirePI"))));
}
suite.addTestSuite(CliSanityTest.class);
return suite;
}
......@@ -69,4 +72,10 @@ public class PluginAutomaticTestBuilder {
private static boolean notSkipTests(String propertyName) {
return !Boolean.getBoolean("hpiTest.skip"+propertyName);
}
public static class CliSanityTest extends HudsonTestCase {
public void testCliSanity() {
CLICommand.clone("help");
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册