From 2ae89a737441ead0c7edc280128957b80fb722b2 Mon Sep 17 00:00:00 2001 From: Volker Mische Date: Mon, 17 Sep 2018 15:09:55 +0200 Subject: [PATCH 1/2] docs: fix type in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 12cd9c5e3c..7a49c97547 100644 --- a/README.md +++ b/README.md @@ -900,7 +900,7 @@ Listing of the main packages used in the IPFS ecosystem. There are also three sp ### Run tests ```sh -# run all the unit tsts +# run all the unit tests > npm test # run just IPFS tests in Node.js From bc9a4ac9e6a4852641fe50377ee2c90d5573a2c3 Mon Sep 17 00:00:00 2001 From: Volker Mische Date: Mon, 17 Sep 2018 15:10:33 +0200 Subject: [PATCH 2/2] test: add way to run a subset of the interface tests --- README.md | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 7a49c97547..2d4ab01f1c 100644 --- a/README.md +++ b/README.md @@ -917,6 +917,9 @@ Listing of the main packages used in the IPFS ecosystem. There are also three sp # run just IPFS core tests in the Browser (Chrome) > npm run test:browser + +# run some interface tests (block API) on Node.js +> npm run test:node:interface -- --grep '.block' ``` ### Run interop tests diff --git a/package.json b/package.json index 5fb97aa240..a0d9ebd5a5 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "test:node:http": "aegir test -t node -f test/http-api/index.js --timeout=10000", "test:node:gateway": "aegir test -t node -f test/gateway/index.js --timeout=10000", "test:node:cli": "aegir test -t node -f test/cli/index.js --timeout=10000", + "test:node:interface": "aegir test -t node -f test/core/interface.spec.js --timeout=10000", "test:bootstrapers": "IPFS_TEST=bootstrapers aegir test -t browser -f test/bootstrapers.js --timeout=10000", "benchmark": "echo \"Error: no benchmarks yet\" && exit 1", "benchmark:node": "echo \"Error: no benchmarks yet\" && exit 1",