Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Rewrite legacy tests#11292

Closed
iarna wants to merge 6 commits intomasterfrom
rewrite-legacy-tests
Closed

Rewrite legacy tests#11292
iarna wants to merge 6 commits intomasterfrom
rewrite-legacy-tests

Conversation

@iarna
Copy link
Copy Markdown
Contributor

@iarna iarna commented Jan 27, 2016

The great legacy test rewrite. All of the things in test/packages have been mechanically converted into stand alone tap tests in test/tap/legacy-*.js. Remaining work to be done is:

Port tests to tap:

@zkat will do these:

  • test/tap/legacy-array-bin.js
  • test/tap/legacy-blerg.js
  • test/tap/legacy-blerg3.js
  • test/tap/legacy-dir-bin.js
  • test/tap/legacy-env-reader.js
  • test/tap/legacy-files.js
  • test/tap/legacy-ignore-nested-nm.js
  • test/tap/legacy-ignore.js

@iarna will do these:

  • test/tap/legacy-missing-bindir.js
    • test/tap/legacy-no-auth-leak.js (new test)
  • test/tap/legacy-optional-deps.js
  • test/tap/legacy-platform-all.js
  • test/tap/legacy-platform.js
  • test/tap/legacy-private.js
  • test/tap/legacy-shrinkwrap.js
  • test/tap/legacy-test-package.js
  • test/tap/legacy-url-dep.js

See 4238ea9 for an example of what these ports look like.

When one of us is done with our list above we'll check back in and probably move on to the following two (or split up the remaining legacy tests above, depending on progress).

We also need to write tests that:

  • Ensure that the artifact created by npm pack is able to install itself.

@iarna
Copy link
Copy Markdown
Contributor Author

iarna commented Feb 1, 2016

@kat blerg, blerg3 & missing-bindir all have asserts around not leaking auth info. I'm doing the last of those and I'll pull it out into its own tests, so feel free to ditch the first two.

@iarna iarna force-pushed the rewrite-legacy-tests branch 3 times, most recently from 5a8614d to 30ec99b Compare February 2, 2016 01:05
@zkat zkat force-pushed the rewrite-legacy-tests branch from decddf7 to be2f831 Compare February 2, 2016 21:20
@iarna iarna force-pushed the rewrite-legacy-tests branch 2 times, most recently from 224a2ba to 8b73be8 Compare February 3, 2016 01:37
@zkat zkat force-pushed the rewrite-legacy-tests branch 4 times, most recently from 0626f34 to d10a590 Compare February 12, 2016 00:58
@zkat zkat added review and removed in-progress labels Feb 12, 2016
@zkat zkat force-pushed the rewrite-legacy-tests branch from 54441b4 to bbd45f1 Compare February 16, 2016 23:50
@iarna
Copy link
Copy Markdown
Contributor Author

iarna commented Feb 18, 2016

💥 🐑 👾

@zkat zkat removed the review label Feb 18, 2016
@zkat zkat added this to the next milestone Feb 18, 2016
iarna and others added 4 commits February 17, 2016 17:13
This removes all the relatively cryptic legacy tests and creates
new tap tests that check the same functionality.

Credit: @iarna
Credit: @zkat
* removed legacy-env-reader test
* test that regular env vars are passed down
* test that npm-prefixed vars are stripped
* test that package.json configs are added to env
* test that package.json configs are prefixed with npm_package
  and added to the env
@zkat
Copy link
Copy Markdown
Contributor

zkat commented Feb 18, 2016

This needs to be rebased on 2.x before merging it there, and it'll take a bit to make sure everything is passing properly over in LTS. I'll make a separate PR for that. :)

iarna added a commit that referenced this pull request Feb 18, 2016
Tool to generate fixtures from folders and module for creating and tearing
down filesystem fixtures easily.

Credit: @iarna
PR-URL: #11292
Reviewed-By: @zkat
Reviewed-By: @othiym23
iarna added a commit that referenced this pull request Feb 18, 2016
This removes all the relatively cryptic legacy tests and creates
new tap tests that check the same functionality.

Credit: @iarna
Credit: @zkat
PR-URL: #11292
Reviewed-By: @iarna
Reviewed-By: @zkat
Reviewed-By: @othiym23
iarna added a commit that referenced this pull request Feb 18, 2016
iarna pushed a commit that referenced this pull request Feb 18, 2016
* removed legacy-env-reader test
* test that regular env vars are passed down
* test that npm-prefixed vars are stripped
* test that package.json configs are added to env
* test that package.json configs are prefixed with npm_package
  and added to the env

Credit: @zkat
PR-URL: #11292
Reviewed-By: @iarna
iarna added a commit that referenced this pull request Feb 18, 2016
iarna pushed a commit that referenced this pull request Feb 18, 2016
@zkat
Copy link
Copy Markdown
Contributor

zkat commented Feb 19, 2016

This was merged and included in npm@3.7.4. Thanks! :D 🎉

@zkat zkat closed this Feb 19, 2016
@zkat zkat mentioned this pull request Feb 20, 2016
@othiym23 othiym23 deleted the rewrite-legacy-tests branch September 9, 2016 03:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants