迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Kettle开源软件地址:https://gitee.com/mirrors/Kettle开源软件介绍:Pentaho Data IntegrationPentaho Data Integration ( ETL ) a.k.a Kettle Project Structure
How to buildPentaho Data Integration uses the Maven framework. Pre-requisites for building the project:
Building itThis is a Maven project, and to build it use the following command: $ mvn clean install Optionally you can specify -Drelease to trigger obfuscation and/or uglification (as needed) Optionally you can specify -Dmaven.test.skip=true to skip the tests (even thoughyou shouldn't as you know) The build result will be a Pentaho package located in Packaging / Distributing itPackages can be built by using the following command: $ mvn clean package The packaged results will be in the For example, a distribution of the Desktop Client (CE) can then be found in: Running the testsUnit tests This will run all unit tests in the project (and sub-modules). To run integration tests as well, see Integration Tests below. $ mvn test If you want to remote debug a single Java unit test (default port is 5005): $ cd core$ mvn test -Dtest=<<YourTest>> -Dmaven.surefire.debug Integration tests In addition to the unit tests, there are integration tests that test cross-module operation. This will run the integration tests. $ mvn verify -DrunITs To run a single integration test: $ mvn verify -DrunITs -Dit.test=<<YourIT>> To run a single integration test in debug mode (for remote debugging in an IDE) on the default port of 5005: $ mvn verify -DrunITs -Dit.test=<<YourIT>> -Dmaven.failsafe.debug To skip test $ mvn clean install -DskipTests To get log as text file $ mvn clean install test >log.txt IntelliJ
Contributing
Use of the Pentaho checkstyle format (via When writing unit tests, you have at your disposal a couple of ClassRules that can be used to maintain a healthytest environment. Use RestorePDIEnvironmentand RestorePDIEngineEnvironmentfor core and engine tests respectively. pex.: public class MyTest { @ClassRule public static RestorePDIEnvironment env = new RestorePDIEnvironment(); #setUp()... @Test public void testSomething() { assertTrue( myMethod() ); }} Asking for helpPlease go to https://community.hitachivantara.com/community/products-and-solutions/pentaho/ to ask questions and get help. ![]() |
请发表评论