This repository has been archived by the owner. It is now read-only.
Please sign in to comment.
Upgrade to tap v1
node-tap v1.0.0 introduces a bunch of consistency and functionality upgrades in the test experience, along with a suite of pretty reporters ported from Mocha's default set. The semantic change that most dramatically affects npm's use (and will likely cause a bit of wailing and gnashing of teeth among other tap users) is that 't.test(...)' is now executed immediately, as long as there is not another test currently in progress. Indeed, everything that the Test class does, it does right away at the moment of calling the function, never using nextTick to defer anything. This means that, for example, a 'console.log' in the middle of a bunch of tests will print its output in the context of the associated test output, instead of having the console.log happen first, and then all of the TAP data deferred until later. For new node-tap users, this has been a significant stumbling block. However, it is a breaking change, and requires that test fixture objects have to be set up in advance of being used by a test, since it's no longer a guarantee that everything at the top (module) level will be executed before any test blocks. Also, the statSync in config-meta was changed to an lstatSync, since I have been developing with tap link-installed, and the directory crawling was sending my system into a tailspin otherwise. It seems like this would happen any time one of the npm deps was link-installed, so it's probably a good idea anyway.
- Loading branch information...
Showing with 595 additions and 583 deletions.
- +1 −1 package.json
- +14 −13 test/tap/add-remote-git-fake-windows.js
- +5 −5 test/tap/add-remote-git-file.js
- +13 −13 test/tap/add-remote-git-shrinkwrap.js
- +13 −13 test/tap/add-remote-git.js
- +1 −1 test/tap/bin.js
- +16 −16 test/tap/bundled-dependencies-nonarray.js
- +1 −1 test/tap/config-meta.js
- +35 −34 test/tap/dedupe-scoped.js
- +8 −8 test/tap/gently-rm-overeager.js
- +11 −11 test/tap/gently-rm-symlink.js
- +14 −13 test/tap/git-dependency-install-link.js
- +13 −12 test/tap/git-npmignore.js
- +16 −15 test/tap/git-races.js
- +30 −30 test/tap/graceful-restart.js
- +7 −6 test/tap/install-bad-man.js
- +6 −6 test/tap/install-man.js
- +25 −24 test/tap/link.js
- +12 −12 test/tap/ls-l-depth-0.js
- +2 −4 test/tap/noargs-install-config-save.js
- +81 −81 test/tap/optional-metadep-rollback-collision.js
- +52 −51 test/tap/outdated-local.js
- +33 −33 test/tap/outdated-private.js
- +25 −25 test/tap/peer-deps-invalid.js
- +14 −14 test/tap/peer-deps-without-package-json.js
- +2 −2 test/tap/registry.js
- +38 −37 test/tap/run-script.js
- +11 −7 test/tap/scripts-whitespace-windows.js
- +28 −27 test/tap/shrinkwrap-local-dependency.js
- +68 −68 test/tap/update-index.js
Oops, something went wrong.