grpc / grpc/grpc-java

Provide JUnit 5 GrpcTestExtension

オープン
#5,331 コメント 31 件 リアクション 39 件 担当者 1 名 @ejona86 が担当を希望しています GitHub で見る
主要言語
Java
スター
12.1k
フォーク
4k
平均マージ
2日 17時間
マージ済み PR(30日)
37

説明

### What version of gRPC are you using?

1.18.0

### What did you expect to see?

In order to be able to test with JUnit 5 I would like to have a comparable solution like `GrpcCleanupRule` but as JUnit 5 extension.

### Example

In my PoC project [mmichaelis/poc-grpc][] you may see an example, which is very similar to your `GrpcCleanupRule` (because that was my intention :smile:): In module [grpc-test][] you will find the class [GrpcTestExtension][] and an example usage in [HelloServiceImplTest][].

### Help wanted?

I may assist in adding this to the `grpc-java` project, but there are several questions:

* First of all: Do you like the extension?
* Where to place the JUnit 5 extension? Into testing module? Or an extra module?
* And if it is an extra module: How to share code? My intention would be to refactor `GrpcCleanupRule`, so that `GrpcTestExtension` and the JUnit 4 rule share as much code as possible.

[mmichaelis/poc-grpc]: "mmichaelis/poc-grpc: Proof-of-Concept for gRPC"
[grpc-test]: "poc-grpc/grpc-parent/grpc-test at master · mmichaelis/poc-grpc"
[GrpcTestExtension]: "poc-grpc/GrpcTestExtension.java at master · mmichaelis/poc-grpc"
[HelloServiceImplTest]: "poc-grpc/HelloServiceImplTest.java at master · mmichaelis/poc-grpc"

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。