Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 707dece

Browse files
authored
Merge pull request #399 from mathworks/integ_tests
Adding system tests
2 parents 699d4a7 + b19294f commit 707dece

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2805
-3573
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: using mpm to install MATLAB
2+
on: push
3+
jobs:
4+
run-tests-job:
5+
strategy:
6+
matrix:
7+
os: [ubuntu-latest, windows-latest, macos-latest]
8+
name: Run System tests
9+
runs-on: ${{ matrix.os }}
10+
steps:
11+
- name: Check out repository
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Java 11
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '11'
18+
distribution: 'temurin'
19+
cache: maven
20+
21+
- name: Setup MATLAB
22+
id: setup-matlab
23+
uses: matlab-actions/setup-matlab@v2
24+
25+
- name: Running tests
26+
run: mvn --batch-mode verify
27+
env:
28+
MATLAB_ROOT: ${{ steps.setup-matlab.outputs.matlabroot }}
29+
MLM_LICENSE_TOKEN: ${{ secrets.MLM_LICENSE_TOKEN}}

azure-pipelines.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

pom.xml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,38 @@
125125
<version>11.0.24</version>
126126
<scope>test</scope>
127127
</dependency>
128+
129+
<!-- Dependencies for system tests -->
130+
<!-- https://mvnrepository.com/artifact/com.jcabi/jcabi-xml -->
131+
<dependency>
132+
<groupId>com.jcabi</groupId>
133+
<artifactId>jcabi-xml</artifactId>
134+
<version>0.23.1</version>
135+
<scope>test</scope>
136+
</dependency>
137+
<!-- https://mvnrepository.com/artifact/org.jenkinsci.plugins/pipeline-model-definition -->
138+
<dependency>
139+
<groupId>org.jenkinsci.plugins</groupId>
140+
<artifactId>pipeline-model-definition</artifactId>
141+
<scope>test</scope>
142+
</dependency>
143+
<!-- Need unzip to add the files in pipeline workspace -->
144+
<!-- https://mvnrepository.com/artifact/org.jenkins-ci.plugins/pipeline-utility-steps -->
145+
<dependency>
146+
<groupId>org.jenkins-ci.plugins</groupId>
147+
<artifactId>pipeline-utility-steps</artifactId>
148+
<version>2.7.1</version>
149+
<scope>test</scope>
150+
</dependency>
151+
<!-- TODO: see if this is necessary Using for verifyCodeCoverage -->
152+
<!-- https://mvnrepository.com/artifact/org.jenkins-ci.plugins/cobertura -->
153+
<dependency>
154+
<groupId>org.jenkins-ci.plugins</groupId>
155+
<artifactId>cobertura</artifactId>
156+
<version>1.16</version>
157+
<scope>test</scope>
158+
</dependency>
159+
128160
</dependencies>
129161
<build>
130162
<plugins>
@@ -215,6 +247,50 @@
215247
</execution>
216248
</executions>
217249
</plugin>
250+
<plugin>
251+
<groupId>org.apache.maven.plugins</groupId>
252+
<artifactId>maven-failsafe-plugin</artifactId>
253+
<version>2.19.1</version>
254+
<executions>
255+
<execution>
256+
<id>integration-tests</id>
257+
<goals>
258+
<goal>integration-test</goal>
259+
</goals>
260+
<configuration>
261+
<includes>
262+
<include>**/*IT.java</include>
263+
</includes>
264+
<excludes>
265+
<exclude>**/*Test.java</exclude>
266+
</excludes>
267+
</configuration>
268+
</execution>
269+
<!-- Add 'verify' goal. This way GA job also fails if there are any integration test failures-->
270+
<execution>
271+
<id>failsafe-verify</id>
272+
<phase>verify</phase>
273+
<goals>
274+
<goal>verify</goal>
275+
</goals>
276+
</execution>
277+
</executions>
278+
</plugin>
279+
<plugin>
280+
<groupId>org.apache.maven.plugins</groupId>
281+
<artifactId>maven-surefire-plugin</artifactId>
282+
<version>2.19.1</version>
283+
<configuration>
284+
<includes>
285+
<include>**/*Test.java</include>
286+
<include>**/*Tester.java</include>
287+
</includes>
288+
<excludes>
289+
<exclude>**/*IT.java</exclude>>
290+
</excludes>
291+
</configuration>
292+
</plugin>
293+
218294
</plugins>
219295
<pluginManagement>
220296
<plugins>

0 commit comments

Comments
 (0)