Skip to content

Commit b899dcc

Browse files
committed
Add test report support
1 parent 2619775 commit b899dcc

File tree

4 files changed

+46
-5
lines changed

4 files changed

+46
-5
lines changed

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ jobs:
5151
command: yarn lint
5252
- run:
5353
name: Run unit tests
54-
command: yarn test
54+
command: yarn ci:test
55+
- store_test_results:
56+
path: test-results
5557
- run:
5658
name: Run integration tests
5759
command: find ./examples/tests -name "*.tab" -exec node ./dist/bin/tablescript.js {} \;

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
node_modules
22
dist
33
package-lock.json
4-
tablescript-graph.svg
4+
tablescript-graph.svg
5+
test-results
6+
yarn-error.log

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"dependency-graph": "madge --image tablescript-graph.svg src/bin/tablescript.js",
1616
"lint": "node_modules/.bin/eslint src",
1717
"test": "mocha --require babel-core/register --require babel-polyfill src/**/*.test.js",
18+
"ci:test": "mocha --reporter mocha-junit-reporter --reporter-options mochaFile=./test-results/mocha/results.xml --require babel-core/register --require babel-polyfill src/**/*.test.js",
1819
"test:watch": "mocha --watch --require babel-core/register --require babel-polyfill test/**/*.js"
1920
},
2021
"author": {
@@ -39,6 +40,7 @@
3940
"eslint-plugin-standard": "*",
4041
"madge": "^3.2.0",
4142
"mocha": "*",
43+
"mocha-junit-reporter": "^1.18.0",
4244
"pegjs": "^0.10.0"
4345
},
4446
"dependencies": {

yarn.lock

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,11 @@ chardet@^0.4.0:
714714
version "0.4.2"
715715
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2"
716716

717+
charenc@~0.0.1:
718+
version "0.0.2"
719+
resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667"
720+
integrity sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=
721+
717722
check-error@^1.0.1, check-error@^1.0.2:
718723
version "1.0.2"
719724
resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82"
@@ -815,13 +820,18 @@ cross-spawn@^6.0.5:
815820
shebang-command "^1.2.0"
816821
which "^1.2.9"
817822

823+
crypt@~0.0.1:
824+
version "0.0.2"
825+
resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b"
826+
integrity sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=
827+
818828
[email protected], debug@^3.0.1, debug@^3.1.0:
819829
version "3.1.0"
820830
resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
821831
dependencies:
822832
ms "2.0.0"
823833

824-
debug@^2.1.2, debug@^2.6.8, debug@^2.6.9:
834+
debug@^2.1.2, debug@^2.2.0, debug@^2.6.8, debug@^2.6.9:
825835
version "2.6.9"
826836
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
827837
dependencies:
@@ -1465,7 +1475,7 @@ is-binary-path@^1.0.0:
14651475
dependencies:
14661476
binary-extensions "^1.0.0"
14671477

1468-
is-buffer@^1.1.5:
1478+
is-buffer@^1.1.5, is-buffer@~1.1.1:
14691479
version "1.1.6"
14701480
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
14711481

@@ -1694,6 +1704,15 @@ math-random@^1.0.1:
16941704
version "1.0.1"
16951705
resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac"
16961706

1707+
md5@^2.1.0:
1708+
version "2.2.1"
1709+
resolved "https://registry.yarnpkg.com/md5/-/md5-2.2.1.tgz#53ab38d5fe3c8891ba465329ea23fac0540126f9"
1710+
integrity sha1-U6s41f48iJG6RlMp6iP6wFQBJvk=
1711+
dependencies:
1712+
charenc "~0.0.1"
1713+
crypt "~0.0.1"
1714+
is-buffer "~1.1.1"
1715+
16971716
memory-fs@^0.4.0:
16981717
version "0.4.1"
16991718
resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552"
@@ -1754,12 +1773,23 @@ minizlib@^1.1.0:
17541773
dependencies:
17551774
minipass "^2.2.1"
17561775

1757-
[email protected], mkdirp@^0.5.0, mkdirp@^0.5.1:
1776+
[email protected], mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1:
17581777
version "0.5.1"
17591778
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
17601779
dependencies:
17611780
minimist "0.0.8"
17621781

1782+
mocha-junit-reporter@^1.18.0:
1783+
version "1.18.0"
1784+
resolved "https://registry.yarnpkg.com/mocha-junit-reporter/-/mocha-junit-reporter-1.18.0.tgz#9209a3fba30025ae3ae5e6bfe7f9c5bc3c2e8ee2"
1785+
integrity sha512-y3XuqKa2+HRYtg0wYyhW/XsLm2Ps+pqf9HaTAt7+MVUAKFJaNAHOrNseTZo9KCxjfIbxUWwckP5qCDDPUmjSWA==
1786+
dependencies:
1787+
debug "^2.2.0"
1788+
md5 "^2.1.0"
1789+
mkdirp "~0.5.1"
1790+
strip-ansi "^4.0.0"
1791+
xml "^1.0.0"
1792+
17631793
mocha@*:
17641794
version "5.2.0"
17651795
resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.2.0.tgz#6d8ae508f59167f940f2b5b3c4a612ae50c90ae6"
@@ -2555,6 +2585,11 @@ write@^0.2.1:
25552585
dependencies:
25562586
mkdirp "^0.5.1"
25572587

2588+
xml@^1.0.0:
2589+
version "1.0.1"
2590+
resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5"
2591+
integrity sha1-eLpyAgApxbyHuKgaPPzXS0ovweU=
2592+
25582593
yallist@^3.0.0, yallist@^3.0.2:
25592594
version "3.0.2"
25602595
resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9"

0 commit comments

Comments
 (0)