Navigation Menu

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

Tests: Added TestCaseFile class and generalized runTestCase #3147

Merged
merged 6 commits into from Oct 19, 2021

Conversation

RunDevelopment
Copy link
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

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.

None yet

2 participants