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

Chore: add a fuzzer to detect bugs in core rules #8422

Merged
merged 4 commits into from Jul 9, 2017
Merged

Chore: add a fuzzer to detect bugs in core rules #8422

merged 4 commits into from Jul 9, 2017

Commits on Jun 26, 2017

  1. Chore: add a fuzzer to detect bugs in core rules

    This commit adds a fuzzer to detect bugs in core rules. The fuzzer can detect two types of problems: crashes (where a rule throws an error given a certain syntax) and autofix errors (where an autofix results in a syntax error).
    
    The fuzzer works by running eslint on randomly-generated code with a random config. The code is generated with [eslump](https://github.com/lydell/eslump), and the config is generated with the existing autoconfig logic.
    
    The fuzzer can be run with `npm run fuzz`. Eventually, I think we should add the fuzzer to the normal `npm test` build.
    not-an-aardvark committed Jun 26, 2017
    Copy the full SHA
    a50ae29 View commit details
    Browse the repository at this point in the history
  2. Pin eslump version

    not-an-aardvark committed Jun 26, 2017
    Copy the full SHA
    d36f2c1 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    381587d View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    ee23674 View commit details
    Browse the repository at this point in the history