Skip to content

Commit 8f69f28

Browse files
committed
Add GUI integration tests CLI
1 parent 94d653b commit 8f69f28

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

contribution/general.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,29 @@ Each new File should have its own accompanying unit tests. Each new interpreter
206206
207207
Zeppelin has 3 types of tests:
208208
209-
1. Unit Tests: The unit tests run as part of each package's build. E.g. SparkInterpeter Module's unit test is SparkInterpreterTest
210-
2. Integration Tests: The integration tests run after all modules are build. The integration tests launch an instance of Zeppelin server. ZeppelinRestApiTest is an example integration test.
211-
3. GUI integration tests: These tests validate the Zeppelin UI elements. These tests require a running Zeppelin server and launches a web browser to validate Notebook UI elements like Notes and their execution. See ZeppelinIT as an example.
209+
* __Unit Tests:__ The unit tests run as part of each package's build. E.g. SparkInterpeter Module's unit test is SparkInterpreterTest
210+
* __Integration Tests:__ The integration tests run after all modules are build. The integration tests launch an instance of Zeppelin server. ZeppelinRestApiTest is an example integration test.
211+
* __GUI integration tests:__ These tests validate the Zeppelin UI elements. These tests require a running Zeppelin server and launches a web browser to validate Notebook UI elements like Notes and their execution. See ZeppelinIT as an example.
212212
213-
Currently the GUI integration tests are not run in the Maven and are only run in the CI environment when the pull request is submitted to github. Make sure to watch the [CI results] (https://travis-ci.org/apache/zeppelin/pull_requests) for your pull request.
213+
Currently the __GUI integration tests__ are not run in the Maven and are only run in the CI environment when the pull request is submitted to github.
214214
215+
Make sure to watch the [CI results] (https://travis-ci.org/apache/zeppelin/pull_requests) for your pull request.
216+
217+
#### Running GUI integration tests locally
218+
219+
##### All tests, just like the CI:
220+
221+
```
222+
PATH=~/Applications/Firefox.app/Contents/MacOS/:$PATH CI="true" mvn verify -Pspark-1.6 -Phadoop-2.3 -Ppyspark -B -pl "zeppelin-interpreter,zeppelin-zengine,zeppelin-server,zeppelin-display,spark-dependencies,spark" -Dtest="org.apache.zeppelin.AbstractFunctionalSuite" -DfailIfNoTests=false
223+
```
224+
225+
##### Next to a Running instance of Zeppelin
226+
227+
This allows you to target a specific __GUI integration test__.
228+
229+
```
230+
TEST_SELENIUM="true" mvn package -DfailIfNoTests=false -pl 'zeppelin-interpreter,zeppelin-zengine,zeppelin-server' -Dtest=ParagraphActionsIT
231+
```
215232
216233
## Continuous Integration
217234

0 commit comments

Comments
 (0)