From aa6e8bead9ccce1ec765064a6bbafd7a153f7683 Mon Sep 17 00:00:00 2001 From: Volker Mische Date: Tue, 18 Sep 2018 10:47:56 +0200 Subject: [PATCH] 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 --- README.md | 5 ++++- package.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 591b00d9eb..c5caed365f 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 @@ -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 2efb9344fc..da542ff70e 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",