Skip to content

Policy integrity test refactor via permutations#34404

Closed
bmeck wants to merge 1 commit intonodejs:masterfrom
bmeck:policy-fixtures
Closed

Policy integrity test refactor via permutations#34404
bmeck wants to merge 1 commit intonodejs:masterfrom
bmeck:policy-fixtures

Conversation

@bmeck
Copy link
Copy Markdown
Member

@bmeck bmeck commented Jul 17, 2020

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

This refactors the policy test to do a full set of permutations of various possible configurations. It is rather extensive and thus likely not best to put into fixtures. Along the way a few bugs were found, due to refactors that did not have test coverage such as the new package_json_reader abstraction. These permutations should cover all the existing 24 variants in the original file and much more (at time of writing it hits 1300 permutations). I have put enough info in the debuglog('test') to recreate the permutation if you are trying to track down what broke, but it isn't ideal.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

esm Issues and PRs related to the ECMAScript Modules implementation. worker Issues and PRs related to Worker support.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants