Skip to content

Commit 4d759ca

Browse files
committed
added npm install step
1 parent 660a1fb commit 4d759ca

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.testspace.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
<root>
44
<suite name="Install.prerequisites" state="1" id=".sh" description="**Install** system prerequisites ">
55
<attributes>
6-
<![CDATA[npm install -g gulp]]>
6+
<![CDATA[npm install -g gulp
7+
npm install]]>
78
</attributes>
89
</suite>
910
<suite name="Tests" state="1" id=".sh" description="run **all** of the unit tests">
1011
<attributes>
11-
<![CDATA[gulp build; echo "$PWD/test/reports/junitresults.xml" > ${self.result}]]>
12+
<![CDATA[gulp build
13+
echo "$PWD/test/reports/junitresults.xml{test}" > ${self.result}]]>
1214
</attributes>
1315
</suite>
1416
<suite name="Coverage" state="1" id=".sh" description="Code coverage based on latest run. Review the ==Reports== tab for historical tracking">
@@ -17,4 +19,4 @@
1719
</attributes>
1820
</suite>
1921
</root>
20-
</schema>
22+
</schema>

readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[![Testspace](http://www.testspace.com/public/img/testspace_logo.png)](http://www.testspace.com)
22
***
33

4-
## JavaScript/Jasmine sample for demonstrating Testspace based on the great [javascript-algorithms repo](mgechev/javascript-algorithms)
4+
## JavaScript/Jasmine sample for demonstrating Testspace based on the [javascript-algorithms repo](mgechev/javascript-algorithms)
55

66
Sample demonstrates techniques for using Testspace with Javascript code and the [Jasmine test framework](http://jasmine.github.io/) together with [Istanbul code coverage tool](https://gotwarlost.github.io/istanbul/) and [Gulp JS build system](http://gulpjs.com/).
77

88
[![Build Status](https://travis-ci.org/testspace-samples/javascript.jasmine.svg?branch=master)](https://travis-ci.org/testspace-samples/php.phpunit)
99
[![Space Health](https://samples.testspace.com/projects/89/spaces/298/badge)](https://samples.testspace.com/projects/89/spaces/298 "Test Cases")
10+
[![Space Metric](https://samples.testspace.com/projects/89/spaces/298/metrics/191/badge)](https://samples.testspace.com/projects/89/spaces/298/metrics#metric-191 "Line/Statement Coverage")
1011
[![Space Metric](https://samples.testspace.com/projects/89/spaces/298/metrics/198/badge)](https://samples.testspace.com/projects/89/spaces/298/metrics#metric-198 "Branch/Condition Coverage")
1112
[![Space Metric](https://samples.testspace.com/projects/89/spaces/298/metrics/197/badge)](https://samples.testspace.com/projects/89/spaces/298/metrics#metric-197 "Function/Method Coverage")
12-
[![Space Metric](https://samples.testspace.com/projects/89/spaces/298/metrics/191/badge)](https://samples.testspace.com/projects/89/spaces/298/metrics#metric-191 "Line/Statement Coverage")
1313

1414

1515
***
@@ -18,13 +18,14 @@ In order to run this sample you will need a host workstation with installed npm.
1818

1919
<pre>
2020
npm install -g gulp
21+
npm install
2122
gulp build
2223
</pre>
2324

2425
Publishing results example:
2526

2627
<pre>
27-
testspace publish [Tests]test/reports/junitresults.xml test/reports/coverage/clover.xml
28+
testspace publish [Tests]test/reports/junitresults.xml{test} test/reports/coverage/clover.xml
2829
</pre>
2930

3031
Checkout the [Space](https://samples.testspace.com/projects/javascript/spaces/jasmine).

0 commit comments

Comments
 (0)