Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

further isolate black box tests #791

Open
pmcelhaney opened this issue Mar 11, 2024 · 0 comments
Open

further isolate black box tests #791

pmcelhaney opened this issue Mar 11, 2024 · 0 comments
Labels
chore good first issue Good for newcomers

Comments

@pmcelhaney
Copy link
Owner

I've had a couple of issues where the code passed all of the tests but did not work when installed via npx.

The black box tests should create a "release" and then install / run it using npx.

  1. use npm pack to create tarball (.tgz) file
  2. use pacote (the same library npm uses under the hood) to extract the .tgz file to a directory, e.g. release-candidate
  3. Run the cli using npx ./release-candidate

That way the test suite will truly be black box tests, in a clean environment with no dependencies on source code.

@pmcelhaney pmcelhaney added good first issue Good for newcomers chore labels Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant