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

add testing framework #33

Merged
merged 2 commits into from
May 30, 2024
Merged

Conversation

AntoineFONDEUR
Copy link
Collaborator

add testing framework

Time spent on this PR: 2.5 hours

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Tests are done on GAS by executing each test function individually and checking if logs displayed seem correct.

Resolves #23

What is the new behavior?

Added a test framework : https://github.com/huan/gast (chosen because it's easy to implement, TAP-compatible and seems to do the job).
To run all tests, use debuger in GAS and run the testRunner function. The result of the tests are displayed in logs with number of fails/number of tests.

src/tests.ts Outdated Show resolved Hide resolved
src/tests.ts Outdated Show resolved Hide resolved
src/vm/constants.ts Outdated Show resolved Hide resolved
@ClementWalter ClementWalter merged commit 43e06e7 into ClementWalter:main May 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add a a test framework
2 participants