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 a test helper function #36

Merged
merged 1 commit into from
Aug 16, 2020
Merged

Conversation

j-f1
Copy link
Member

@j-f1 j-f1 commented Aug 15, 2020

Extracted from #26.

Usage:

test("Test Name") {
  // run your tests here.
}

It will print the test name before any errors that are thrown, and optionally before running the test at all, making it easier to debug errors in the JS code. (JS errors don’t propagate back into wasm so there is no way to handle them)

Copy link
Contributor

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely, thank you!

Copy link
Member

@kateinoigakukun kateinoigakukun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 😊
(Sorry I'll be slow to respond until end of thus month due to gsoc work.)

@kateinoigakukun kateinoigakukun merged commit 04dc4ad into swiftwasm:master Aug 16, 2020
@j-f1 j-f1 deleted the test-helper branch August 16, 2020 11:28
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.

3 participants