Skip to content

Commit 831599d

Browse files
licg9999Chungen Li
authored andcommitted
test: add e2e tests for spread index and fix flaws
1 parent 9244723 commit 831599d

11 files changed

Lines changed: 363 additions & 230 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test
1+
name: Unit Test
22

33
on:
44
workflow_call:
@@ -23,7 +23,7 @@ jobs:
2323
node-version: 14
2424
- name: Install and build
2525
run: yarn
26-
- name: Test with coverage enabled
26+
- name: Unit test with coverage enabled
2727
run: yarn coverage
2828
- name: Upload coverage to Codecov
2929
uses: codecov/codecov-action@v2

.github/workflows/verify-and-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
name: Lint
1212
uses: ./.github/workflows/lint.yml
1313

14-
test:
15-
name: Test
16-
uses: ./.github/workflows/test.yml
14+
unittest:
15+
name: Unit Test
16+
uses: ./.github/workflows/unittest.yml
1717
secrets:
1818
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1919

@@ -25,7 +25,7 @@ jobs:
2525
name: Publish
2626
needs:
2727
- lint
28-
- test
28+
- unittest
2929
- e2e
3030
runs-on: ubuntu-20.04
3131
steps:

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ At spreado, [yarn 1.x](https://classic.yarnpkg.com/) is used to execute commands
2424

2525
- `yarn build`: compiles source code and checks types.
2626
- `yarn watch`: does the same as `yarn build` but in watch mode.
27-
- `yarn test`: runs tests.
28-
- `yarn coverage`: runs tests with coverage enabled.
27+
- `yarn unittest`: runs unit tests.
28+
- `yarn coverage`: runs unit tests with coverage enabled.
2929
- `yarn clean:built`: cleans compilation outputs.
3030
- `yarn clean:coverage`: cleans coverage reports.
3131
- `yarn clean:cache`: cleans generated caches.
@@ -37,7 +37,7 @@ At spreado, [yarn 1.x](https://classic.yarnpkg.com/) is used to execute commands
3737
- `yarn lint:commitlint`: checks commit messages
3838
- `yarn lint`: checks everything
3939

40-
Often, you may keep `yarn watch` running to do compilation and type checking continuously. And you may append a relative path to `yarn test/coverage` to specify which tests to run. Please just make best of commands above to help yourself.
40+
Often, you may keep `yarn watch` running to do compilation and type checking continuously. And you may append a relative path to `yarn unittest/coverage` to specify which unit tests to run. Please just make best of commands above to help yourself.
4141

4242
## Codebase Overview
4343

0 commit comments

Comments
 (0)