Skip to content

Commit

Permalink
test: Port legacy tests to tap
Browse files Browse the repository at this point in the history
This removes all the relatively cryptic legacy tests and creates
new tap tests that check the same functionality.

Credit: @iarna
Credit: @zkat
PR-URL: npm#11292
Reviewed-By: @iarna
Reviewed-By: @zkat
Reviewed-By: @othiym23
  • Loading branch information
iarna committed Feb 18, 2016
1 parent 07f020a commit 0837346
Show file tree
Hide file tree
Showing 89 changed files with 1,295 additions and 560 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ before_install:
- "node . install -g ."
- "mkdir -p /var/run/couchdb"
sudo: false
script: "npm run-script test-all"
script: "npm test"
notifications:
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,6 @@
"preversion": "bash scripts/update-authors.sh && git add AUTHORS && git commit -m \"update AUTHORS\" || true",
"tap": "tap --timeout 240",
"test": "standard && npm run test-tap",
"test-all": "standard && npm run test-legacy && npm run test-tap",
"test-legacy": "node ./test/run.js",
"test-tap": "npm run tap -- \"test/tap/*.js\"",
"test-node": "\"$NODE\" ./test/run.js && \"$NODE\" \"node_modules/.bin/tap\" --timeout 240 \"test/tap/*.js\""
},
Expand Down
1 change: 0 additions & 1 deletion test/packages/npm-test-array-bin/README

This file was deleted.

2 changes: 0 additions & 2 deletions test/packages/npm-test-array-bin/bin/array-bin

This file was deleted.

4 changes: 0 additions & 4 deletions test/packages/npm-test-array-bin/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions test/packages/npm-test-array-bin/test.js

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-blerg/README

This file was deleted.

5 changes: 0 additions & 5 deletions test/packages/npm-test-blerg/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions test/packages/npm-test-blerg/test.js

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-blerg3/README

This file was deleted.

5 changes: 0 additions & 5 deletions test/packages/npm-test-blerg3/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions test/packages/npm-test-blerg3/test.js

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-bundled-git/README

This file was deleted.

28 changes: 0 additions & 28 deletions test/packages/npm-test-bundled-git/minimatch-expected.json

This file was deleted.

5 changes: 0 additions & 5 deletions test/packages/npm-test-bundled-git/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions test/packages/npm-test-bundled-git/test.js

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-dir-bin/README

This file was deleted.

2 changes: 0 additions & 2 deletions test/packages/npm-test-dir-bin/bin/dir-bin

This file was deleted.

4 changes: 0 additions & 4 deletions test/packages/npm-test-dir-bin/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions test/packages/npm-test-dir-bin/test.js

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-env-reader/README

This file was deleted.

14 changes: 0 additions & 14 deletions test/packages/npm-test-env-reader/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions test/packages/npm-test-env-reader/test.js

This file was deleted.

7 changes: 0 additions & 7 deletions test/packages/npm-test-files/.npmignore

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-files/README

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
10 changes: 0 additions & 10 deletions test/packages/npm-test-files/package.json

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion test/packages/npm-test-files/sub/include4

This file was deleted.

27 changes: 0 additions & 27 deletions test/packages/npm-test-files/test.sh

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-ignore-nested-nm/README

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions test/packages/npm-test-ignore-nested-nm/package.json

This file was deleted.

2 changes: 0 additions & 2 deletions test/packages/npm-test-ignore-nested-nm/test.js

This file was deleted.

7 changes: 0 additions & 7 deletions test/packages/npm-test-ignore/.npmignore

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-ignore/README

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
3 changes: 0 additions & 3 deletions test/packages/npm-test-ignore/package.json

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion test/packages/npm-test-ignore/sub/include4

This file was deleted.

29 changes: 0 additions & 29 deletions test/packages/npm-test-ignore/test.sh

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-missing-bindir/README

This file was deleted.

4 changes: 0 additions & 4 deletions test/packages/npm-test-missing-bindir/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions test/packages/npm-test-missing-bindir/test.js

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-optional-deps/README

This file was deleted.

11 changes: 0 additions & 11 deletions test/packages/npm-test-optional-deps/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions test/packages/npm-test-optional-deps/test.js

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-platform-all/README

This file was deleted.

5 changes: 0 additions & 5 deletions test/packages/npm-test-platform-all/package.json

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-platform/README

This file was deleted.

5 changes: 0 additions & 5 deletions test/packages/npm-test-platform/package.json

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-private/README

This file was deleted.

4 changes: 0 additions & 4 deletions test/packages/npm-test-private/package.json

This file was deleted.

1 change: 0 additions & 1 deletion test/packages/npm-test-shrinkwrap/README

This file was deleted.

49 changes: 0 additions & 49 deletions test/packages/npm-test-shrinkwrap/npm-shrinkwrap.json

This file was deleted.

13 changes: 0 additions & 13 deletions test/packages/npm-test-shrinkwrap/package.json

This file was deleted.

Loading

0 comments on commit 0837346

Please sign in to comment.