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

test: Add jest testsuite with xmltest cases #112

Merged
merged 27 commits into from
Sep 16, 2020

Commits on Sep 4, 2020

  1. test: Add jest testsuite with xmltest cases

    The only thing the current test suite does is to run ton's of cases and take a snapshot of the output and errors, so that hopefully a test will fail if we make a breaking change.
    (It doesn't cover breaking API changes of course, but sets the basis since it adds jest and any added test will be part of CI testing.)
    
    Added devDependencies:
    - https://npms.io/search?q=jest
    - https://github.com/karfau/xmltest and it's peerDeps
      - https://npms.io/search?q=yauzl
      - https://npms.io/search?q=get-stream
    
    New helper Module `configure-test-parser.js`:
    To simplify the very common use case of testing DOMParser results
    karfau committed Sep 4, 2020
    Configuration menu
    Copy the full SHA
    a8bfc1e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad88291 View commit details
    Browse the repository at this point in the history
  3. test: Only run jest for stryker but using commandRunner

    (Couldn't make the pure jestRunner solution work)
    karfau committed Sep 4, 2020
    Configuration menu
    Copy the full SHA
    5124cbf View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2020

  1. Configuration menu
    Copy the full SHA
    e351f18 View commit details
    Browse the repository at this point in the history
  2. chore: Drop .gitattributes

    karfau committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    f630919 View commit details
    Browse the repository at this point in the history
  3. test: Fix "binary" chars in snapshots and minimize snapshots

    Latest xmltest comes with a helper to replace those nasty chars with a hex representation.
    Dropped `.gitattributes`
    karfau committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    f50ef64 View commit details
    Browse the repository at this point in the history
  4. test: Revert jest and stryker config changes

    (postponed to later PR)
    karfau committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    420cfc5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c81e331 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    243328f View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2020

  1. cleanup: add semicolons

    brodybits committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    42c986e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f3c197 View commit details
    Browse the repository at this point in the history
  3. cleanup: add blank lines

    brodybits committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    9c22168 View commit details
    Browse the repository at this point in the history
  4. nit: refactor to remove let

    brodybits committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    8faf231 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8ec005e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4a2f1e8 View commit details
    Browse the repository at this point in the history
  7. rename parameter, etc.

    brodybits committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    32d9503 View commit details
    Browse the repository at this point in the history
  8. further minimize snapshots

    brodybits committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    b6b84a0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e03ad8d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    85d8c41 View commit details
    Browse the repository at this point in the history
  11. test: Restore adding actual, and expected when different

    This way tests fail if `actual` changes or even becomes different from or equal to `expected`.
    karfau committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    cc3ef75 View commit details
    Browse the repository at this point in the history
  12. rename test/xmltest/minimize-snapshot.js -> test/xmltest/generate-sna…

    …pshot.js & update comments
    brodybits committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    e40c15e View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3e6da95 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    086e4de View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2020

  1. apply some Prettier formatting in test/xmltest

    by the following command:
    
    prettier --use-tabs --no-semi --single-quote --trailing-comma none --print-width 90 --write test/xmltest
    brodybits committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    ddefe97 View commit details
    Browse the repository at this point in the history
  2. apply some Prettier formatting in test/get-test-parser.js

    prettier --use-tabs --no-semi --single-quote --trailing-comma none --print-width 90 --write test/get-test-parser.js
    brodybits committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    25074c1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    14c94eb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e39f4f5 View commit details
    Browse the repository at this point in the history