diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2017-03-02 21:41:29 -0800 |
---|---|---|
committer | Carl Mastrangelo <notcarl@google.com> | 2017-03-02 21:41:29 -0800 |
commit | 0941cf94ea6d35c7befb70cc0bf89008e679f6cf (patch) | |
tree | 469fd424995617d56fa7b66b19e41a99b7090113 /CONTRIBUTING.md | |
parent | c5e59035985129e26889cfe350090d261cb894c5 (diff) | |
download | grpc-grpc-java-0941cf94ea6d35c7befb70cc0bf89008e679f6cf.tar.gz |
core: add instructions about running tests in IJ
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r-- | CONTRIBUTING.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7b9fdfef9..223300b77 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -38,3 +38,16 @@ Make sure that `./gradlew build` (`gradlew build` on Windows) completes successfully without any new warnings. Then create a Pull Request with your changes. When the changes are accepted, they will be merged or cherry-picked by a gRPC core developer. + +## Running tests + +### Jetty ALPN setup for IntelliJ + +The tests in interop-testing project require jetty-alpn agent running in the background +otherwise they'll fail. Here are instructions on how to setup IntellJ IDEA to enable running +those tests in IDE: + +* Settings -> Build Tools -> Gradle -> Runner -> select Gradle Test Runner +* View -> Tool Windows -> Gradle -> Edit Run Configuration -> Defaults -> JUnit -> Before lauch -> + -> Run Gradle task, enter the task in the build.gradle that sets the javaagent. + +Step 1 must be taken, otherwise by the default JUnit Test Runner running a single test in IDE will trigger all the tests. |