Skip to content

Commit a56b191

Browse files
committed
fix: deactivate integration tests by default
1 parent be912b7 commit a56b191

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

Diff for: .github/workflows/master-snapshot-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
java-version: ${{ matrix.java }}
2424
- name: Run unit tests
25-
run: mvn -B test -P no-integration-tests --file pom.xml
25+
run: mvn -B test --file pom.xml
2626
- name: Set up Minikube
2727
uses: manusa/[email protected]
2828
with:

Diff for: .github/workflows/pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Check code format
2525
run: mvn fmt:check --file pom.xml
2626
- name: Run unit tests
27-
run: mvn -B test -P no-integration-tests --file pom.xml
27+
run: mvn -B test --file pom.xml
2828
- name: Set up Minikube
2929
uses: manusa/[email protected]
3030
with:

Diff for: docs/DOCS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ version can be found under `samples/mysql-schema/README.md`.
2020

2121
1. Setup kubectl to work with your Kubernetes cluster of choice.
2222
1. Apply Custom Resource Definition
23-
1. Compile the whole project (framework + samples) using `mvn install -P no-integration-tests` in the root directory
23+
1. Compile the whole project (framework + samples) using `mvn install` in the root directory
2424
1. Run the main class of the sample you picked and check out the sample's README to see what it does.
2525
When run locally the framework will use your Kubernetes client configuration (in ~/.kube/config) to make the connection
2626
to the cluster. This is why it was important to set up kubectl up front.

Diff for: pom.xml

+7-7
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,11 @@
117117
<version>${surefire.version}</version>
118118
<configuration>
119119
<includes>
120-
<include>**/*IT.java</include>
121120
<include>**/*Test.java</include>
122121
</includes>
122+
<excludes>
123+
<exclude>**/*IT.java</exclude>
124+
</excludes>
123125
</configuration>
124126
</plugin>
125127
<plugin>
@@ -143,7 +145,7 @@
143145

144146
<profiles>
145147
<profile>
146-
<id>no-integration-tests</id>
148+
<id>all-tests</id>
147149
<build>
148150
<plugins>
149151
<plugin>
@@ -153,10 +155,8 @@
153155
<configuration>
154156
<includes>
155157
<include>**/*Test.java</include>
158+
<include>**/*IT.java</include>
156159
</includes>
157-
<excludes>
158-
<exclude>**/*IT.java</exclude>
159-
</excludes>
160160
</configuration>
161161
</plugin>
162162
</plugins>
@@ -172,10 +172,10 @@
172172
<version>${surefire.version}</version>
173173
<configuration>
174174
<includes>
175-
<exclude>**/*IT.java</exclude>
175+
<include>**/*IT.java</include>
176176
</includes>
177177
<excludes>
178-
<include>**/*Test.java</include>
178+
<exclude>**/*Test.java</exclude>
179179
</excludes>
180180
</configuration>
181181
</plugin>

Diff for: samples/mysql-schema/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ the [Container Registry](https://cloud.google.com/container-registry/) in Google
5050

5151
1. The following Maven command will build the jar file, package it as a Docker image and push it to the registry.
5252

53-
`mvn -P no-integration-tests package dockerfile:build dockerfile:push`
53+
`mvn package dockerfile:build dockerfile:push`
5454

5555
1. Deploy the test MySQL on your cluster if you want to use it. Note that if you have an already running MySQL server
5656
you want to use, you can skip this step, but you will have to configure the operator to use that server.

0 commit comments

Comments
 (0)