Skip to content

Tests: Added TestCaseFile class and generalized runTestCase#3147

Merged
RunDevelopment merged 6 commits intoPrismJS:masterfrom
RunDevelopment:test-case-class
Oct 19, 2021
Merged

Tests: Added TestCaseFile class and generalized runTestCase#3147
RunDevelopment merged 6 commits intoPrismJS:masterfrom
RunDevelopment:test-case-class

Conversation

@RunDevelopment
Copy link
Copy Markdown
Member

This adds 2 things:

  1. A TestCaseClass class.
  2. A TokenizeJSONRunner class.

I moved all the logic for parsing and printing .test files into the TestCaseClass. This neatly separates the .test file format from the code running tests.

I generalized the runTestCase function by adding a new runTestCaseWithRunner function. The new function will also take a runner. Runners are a new concept here. A runner is responsible for tokenizing/highlighting code and comparing it to the expected value.

This generalization is overkill as is right now but necessary for adding HTML .test files.

@github-actions
Copy link
Copy Markdown

No JS Changes

Generated by 🚫 dangerJS against cec28b0

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants