liuxunorg commented on a change in pull request #84: SUBMARINE-286. Add documentation of E2E test framework URL: https://github.com/apache/submarine/pull/84#discussion_r343723410
########## File path: docs/development/IntegrationTest.md ########## @@ -0,0 +1,62 @@ +<!--- + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. See accompanying LICENSE file. +--> + +# IntegrationTest + +## Run the existing tests. +##### Move to the working directroy. +``` +cd hadoop-submarine/submarine-test/e2e +``` +##### Compile & Run. + +> Following command will compile all files and run all files ending with "IT". + +**If your workbench server is not working on port 32777 ([mini-submarine](https://github.com/apache/submarine/tree/master/dev-support/mini-submarine) maps the workbench port 8000 to 32777), please first modify the port in WebDriverManager.java line 61 to the port where your workbench run.** + +For linux +``` +mvn verify +``` +For MacOS +``` +mvn clean install -U +``` +##### Result +If all of the function under test are succeeded, it will show. +``` +BUILD SUCCESS +``` +Otherwise, it will show. +``` +BUILD FAILURE +``` + +## Add your own integration test +1. Create new file ending with "IT" under "hadoop-submarine/submarine-test/e2e/src/test/java/org/apache/submarine/integration/". Review comment: Need change `hadoop-submarine/` to `submarine/` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
