Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit aa6e8be

Browse files
vmxAlan Shaw
authored andcommitted
Add way to run a subset of the interface tests (#1573)
* docs: fix type in README * test: add way to run a subset of the interface tests
1 parent af30ea5 commit aa6e8be

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ Listing of the main packages used in the IPFS ecosystem. There are also three sp
900900
### Run tests
901901

902902
```sh
903-
# run all the unit tsts
903+
# run all the unit tests
904904
> npm test
905905
906906
# run just IPFS tests in Node.js
@@ -917,6 +917,9 @@ Listing of the main packages used in the IPFS ecosystem. There are also three sp
917917
918918
# run just IPFS core tests in the Browser (Chrome)
919919
> npm run test:browser
920+
921+
# run some interface tests (block API) on Node.js
922+
> npm run test:node:interface -- --grep '.block'
920923
```
921924

922925
### Run interop tests

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"test:node:http": "aegir test -t node -f test/http-api/index.js --timeout=10000",
3434
"test:node:gateway": "aegir test -t node -f test/gateway/index.js --timeout=10000",
3535
"test:node:cli": "aegir test -t node -f test/cli/index.js --timeout=10000",
36+
"test:node:interface": "aegir test -t node -f test/core/interface.spec.js --timeout=10000",
3637
"test:bootstrapers": "IPFS_TEST=bootstrapers aegir test -t browser -f test/bootstrapers.js --timeout=10000",
3738
"benchmark": "echo \"Error: no benchmarks yet\" && exit 1",
3839
"benchmark:node": "echo \"Error: no benchmarks yet\" && exit 1",

0 commit comments

Comments
 (0)