Skip to content

Commit a58bd71

Browse files
author
Krum Motsov
committed
Add testspace schema file to import and update shippable config to use it
1 parent eb34c85 commit a58bd71

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.testspace.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<schema version="1.0" manual="0">
3+
<root>
4+
<suite name="Install.prerequisites" state="1" id=".sh" description="**Install** system prerequisites ">
5+
<attributes>
6+
<![CDATA[npm install -g gulp;]]>
7+
</attributes>
8+
</suite>
9+
<suite name="Tests" state="1" id=".sh" description="run **all** of the unit tests">
10+
<attributes>
11+
<![CDATA[gulp build]]>
12+
</attributes>
13+
</suite>
14+
<suite name="Coverage" state="1" id=".sh" description="Code coverage based on latest run. Review the ==Reports== tab for historical tracking">
15+
<attributes>
16+
<![CDATA[echo "$PWD/test/coverage/junitresults.xml" > ${self.result}]]>
17+
</attributes>
18+
</suite>
19+
</root>
20+
</schema>

shippable.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ env:
99

1010
before_script:
1111
- ./testspace_install.sh
12-
- npm install -g gulp
12+
- export PATH="${HOME}/testspace:${PATH}"
1313
- mkdir -p shippable/codecoverage
1414
- mkdir -p shippable/testresults
1515
script:
16-
- gulp build
17-
- export PATH="${HOME}/testspace:${PATH}"
1816
- testspace config url $TESTSPACE_TOKEN
17+
- testspace import .testspace.xml
1918
- testspace run
2019

20+
after_script:
2121
- cp test/reports/junitresults.xml shippable/testresults
2222
- cp test/reports/coverage/clover.xml shippable/codecoverage

0 commit comments

Comments
 (0)