Skip to content

Commit 276ef71

Browse files
Tests (#117)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
1 parent 934c9d7 commit 276ef71

Some content is hidden

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

42 files changed

+11116
-332
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
run: node common/scripts/install-run-rush.js install
2626
- name: Rush validate
2727
run: node common/scripts/install-run-rush.js validate --verbose
28-
# - name: Rush test
29-
# run: node common/scripts/install-run-rush.js test --verbose
28+
- name: Rush test
29+
run: node common/scripts/install-run-rush.js test --verbose
3030
- name: Publish packages
3131
if: startsWith(github.ref, 'refs/tags/v0.7.') || startsWith(github.ref, 'refs/tags/s0.7.')
3232
env:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@hcengineering/communication-rest-client",
5+
"comment": "Bump core",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@hcengineering/communication-rest-client"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@hcengineering/communication-sdk-types",
5+
"comment": "Bump core",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@hcengineering/communication-sdk-types"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@hcengineering/communication-server",
5+
"comment": "Add tests",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@hcengineering/communication-server"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@hcengineering/communication-types",
5+
"comment": "Bump core",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@hcengineering/communication-types"
10+
}

common/config/rush/command-line.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,34 @@
3030
},
3131
"ignoreMissingScript": true,
3232
"allowWarningsOnSuccess": false
33+
},
34+
{
35+
"name": "_phase:test",
36+
"dependencies": {
37+
"self": ["_phase:build"],
38+
"upstream": ["_phase:validate"]
39+
},
40+
"ignoreMissingScript": true,
41+
"allowWarningsOnSuccess": true
3342
}
3443
],
3544
"commands": [
45+
{
46+
"commandKind": "global",
47+
"name": "coverage",
48+
"summary": "Run tests, merge LCOV and generate HTML coverage",
49+
"description": "Run 'rush test', then merge per-package LCOV files and generate HTML coverage in coverage/html",
50+
"safeForSimultaneousRushProcesses": true,
51+
"shellCommand": "rush test && node scripts/merge-coverage.js && node scripts/generate-coverage-html.js coverage/lcov.info coverage/html"
52+
},
53+
{
54+
"commandKind": "phased",
55+
"summary": "Do testing",
56+
"name": "test",
57+
"phases": ["_phase:build", "_phase:test"],
58+
"enableParallelism": true,
59+
"incremental": true
60+
},
3661
{
3762
"commandKind": "phased",
3863
"name": "build",
@@ -95,7 +120,6 @@
95120
"shellCommand": "./common/scripts/node_modules/.bin/bump-changes-from-tag"
96121
}
97122
],
98-
99123
/**
100124
* Custom "parameters" introduce new parameters for specified Rush command-line commands.
101125
* For example, you might define a "--production" parameter for the "rush build" command.

0 commit comments

Comments
 (0)