Skip to content
Snippets Groups Projects
Commit 1b7aea43 authored by Antoine Merle's avatar Antoine Merle
Browse files

Use new template for MATLAB tests

parent 7f3951de
No related branches found
No related tags found
1 merge request!126Use new template for MATLAB tests
Pipeline #141577 passed
...@@ -7,6 +7,7 @@ variables: ...@@ -7,6 +7,7 @@ variables:
TBXFOLDER: matlab TBXFOLDER: matlab
MATFIRST: 902 MATFIRST: 902
MATVER: 906 MATVER: 906
TESTCASE: tcv
# no build for gdat, so don't define jobs for build phase # no build for gdat, so don't define jobs for build phase
...@@ -15,44 +16,23 @@ TCV-960: ...@@ -15,44 +16,23 @@ TCV-960:
extends: .test-template extends: .test-template
variables: variables:
MATLABCMD: matlab960 MATLABCMD: matlab960
TESTCASE: tcv
artifacts:
paths:
- test_${TBXTARGET}_${TESTCASE}_2019a_cov.xml
reports:
junit: test_${TBXTARGET}_${TESTCASE}_2019a.xml
cobertura: test_${TBXTARGET}_${TESTCASE}_2019a_cov.xml
TCV_IMAS-960: TCV_IMAS-960:
extends: .test-template extends: .test-template
variables: variables:
MATLABCMD: matlab960 MATLABCMD: matlab960
TESTCASE: tcv_imas TESTCASE: tcv_imas
artifacts:
paths:
- test_${TBXTARGET}_${TESTCASE}_2019a_cov.xml
reports:
junit: test_${TBXTARGET}_${TESTCASE}_2019a.xml
cobertura: test_${TBXTARGET}_${TESTCASE}_2019a_cov.xml
TCV-920: TCV-920:
extends: .test-template extends: .test-template:8.6-to-9.5
variables: variables:
MATLABCMD: matlab920 MATLABCMD: matlab920
TESTCASE: tcv
artifacts:
reports:
junit: test_${TBXTARGET}_${TESTCASE}_2017a.xml
TCV_IMAS-920: TCV_IMAS-920:
extends: .test-template extends: .test-template:8.6-to-9.5
variables: variables:
MATLABCMD: matlab920 MATLABCMD: matlab920
TESTCASE: tcv_imas TESTCASE: tcv_imas
artifacts:
reports:
junit: test_${TBXTARGET}_${TESTCASE}_2017a.xml
# Post test report collection # Post test report collection
code-coverage-960: code-coverage-960:
...@@ -73,7 +53,6 @@ test-staging-960_tcv: ...@@ -73,7 +53,6 @@ test-staging-960_tcv:
extends: .test-staging-template extends: .test-staging-template
variables: variables:
MATLABCMD: matlab960 MATLABCMD: matlab960
TESTCASE: tcv
test-staging-960_tcv_imas: test-staging-960_tcv_imas:
extends: .test-staging-template extends: .test-staging-template
...@@ -85,7 +64,6 @@ test-staging-920: ...@@ -85,7 +64,6 @@ test-staging-920:
extends: .test-staging-template extends: .test-staging-template
variables: variables:
MATLABCMD: matlab920 MATLABCMD: matlab920
TESTCASE: tcv
# pre-deployment # pre-deployment
pre-deployment-checks: pre-deployment-checks:
...@@ -100,7 +78,6 @@ test-post-deploy-matlab-9.2.0_tcv: ...@@ -100,7 +78,6 @@ test-post-deploy-matlab-9.2.0_tcv:
extends: .test-post-deploy-template extends: .test-post-deploy-template
variables: variables:
MATLABCMD: matlab920 MATLABCMD: matlab920
TESTCASE: tcv
test-post-deploy-matlab-9.2.0_tcv_imas: test-post-deploy-matlab-9.2.0_tcv_imas:
extends: .test-post-deploy-template extends: .test-post-deploy-template
......
...@@ -88,7 +88,7 @@ if needXML || needCOV ...@@ -88,7 +88,7 @@ if needXML || needCOV
end end
if needXML if needXML
% Add some JUnit XML file with tests results % Add some JUnit XML file with tests results
xmlFile = fullfile(projectpath,sprintf('%s_%s_%s.xml',prefix,test_case,suffix)); xmlFile = fullfile(projectpath,sprintf('%s_%s_%s_junit.xml',prefix,test_case,suffix));
fprintf('\tGenerating JUnit XML report at %s\n',xmlFile); fprintf('\tGenerating JUnit XML report at %s\n',xmlFile);
p = XMLPlugin.producingJUnitFormat(xmlFile); p = XMLPlugin.producingJUnitFormat(xmlFile);
runner.addPlugin(p) runner.addPlugin(p)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment