Skip to content

[Docs] Added instructions for Java in the 'Test Runners' section #1458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,41 @@ Many of the code examples in this documentation can be found in our example repo
There are multiple options in each language, but here is what we are using in our examples:

{{< tabpane langEqualsHeader=true >}}
{{< tab header="Java" >}}
// Add instructions
{{% tab header="Java" text=true %}}
Install JUnit 5 test runner using a build tool.

### Maven

In the project’s `pom.xml` file, specify the dependency:

{{< gh-codeblock path="examples/java/pom.xml#L53-L58" >}}

and configure the build plugin:

{{< gh-codeblock path="examples/java/pom.xml#L63-L73" >}}

Now, run your tests using:

```shell
mvn clean test
```

### Gradle

In the project's `build.gradle` file, specify the dependency:

{{< gh-codeblock path="examples/java/build.gradle#L15" >}}

and add the following in the `test` task:

{{< gh-codeblock path="examples/java/build.gradle#L19" >}}

Now, run your tests using:

```shell
gradle clean test
```

{{< /tab >}}
{{< tab header="Python" >}}
// Add instructions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,41 @@ Many of the code examples in this documentation can be found in our example repo
There are multiple options in each language, but here is what we are using in our examples:

{{< tabpane text=true langEqualsHeader=true >}}
{{< tab header="Java" >}}
// Add instructions
{{% tab header="Java" text=true %}}
Install JUnit 5 test runner using a build tool.

### Maven

In the project’s `pom.xml` file, specify the dependency:

{{< gh-codeblock path="examples/java/pom.xml#L53-L58" >}}

and configure the build plugin:

{{< gh-codeblock path="examples/java/pom.xml#L63-L73" >}}

Now, run your tests using:

```shell
mvn clean test
```

### Gradle

In the project's `build.gradle` file, specify the dependency:

{{< gh-codeblock path="examples/java/build.gradle#L15" >}}

and add the following in the `test` task:

{{< gh-codeblock path="examples/java/build.gradle#L19" >}}

Now, run your tests using:

```shell
gradle clean test
```

{{< /tab >}}
{{< tab header="Python" >}}
// Add instructions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,41 @@ Existem múltiplas opções em cada linguagem, mas esta será qual usaremos em n


{{< tabpane text=true langEqualsHeader=true >}}
{{< tab header="Java" >}}
// Add instructions
{{% tab header="Java" text=true %}}
Install JUnit 5 test runner using a build tool.

### Maven

In the project’s `pom.xml` file, specify the dependency:

{{< gh-codeblock path="examples/java/pom.xml#L53-L58" >}}

and configure the build plugin:

{{< gh-codeblock path="examples/java/pom.xml#L63-L73" >}}

Now, run your tests using:

```shell
mvn clean test
```

### Gradle

In the project's `build.gradle` file, specify the dependency:

{{< gh-codeblock path="examples/java/build.gradle#L15" >}}

and add the following in the `test` task:

{{< gh-codeblock path="examples/java/build.gradle#L19" >}}

Now, run your tests using:

```shell
gradle clean test
```

{{< /tab >}}
{{< tab header="Python" >}}
// Add instructions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,41 @@ Many of the code examples in this documentation can be found in our example repo
There are multiple options in each language, but here is what we are using in our examples:

{{< tabpane text=true langEqualsHeader=true >}}
{{< tab header="Java" >}}
// Add instructions
{{% tab header="Java" text=true %}}
Install JUnit 5 test runner using a build tool.

### Maven

In the project’s `pom.xml` file, specify the dependency:

{{< gh-codeblock path="examples/java/pom.xml#L53-L58" >}}

and configure the build plugin:

{{< gh-codeblock path="examples/java/pom.xml#L63-L73" >}}

Now, run your tests using:

```shell
mvn clean test
```

### Gradle

In the project's `build.gradle` file, specify the dependency:

{{< gh-codeblock path="examples/java/build.gradle#L15" >}}

and add the following in the `test` task:

{{< gh-codeblock path="examples/java/build.gradle#L19" >}}

Now, run your tests using:

```shell
gradle clean test
```

{{< /tab >}}
{{< tab header="Python" >}}
// Add instructions
Expand Down