Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add a test helper function#36

Merged
kateinoigakukun merged 1 commit into
swiftwasm:masterswiftwasm/JavaScriptKit:masterfrom
j-f1:test-helperj-f1/forked-JavaScriptKit:test-helperCopy head branch name to clipboard
Aug 16, 2020
Merged

Add a test helper function#36
kateinoigakukun merged 1 commit into
swiftwasm:masterswiftwasm/JavaScriptKit:masterfrom
j-f1:test-helperj-f1/forked-JavaScriptKit:test-helperCopy head branch name to clipboard

Conversation

@j-f1

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

Copy link
Copy Markdown
Member

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)

@MaxDesiatov MaxDesiatov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lovely, thank you!

@j-f1 j-f1 requested a review from kateinoigakukun August 15, 2020 17:31

@kateinoigakukun kateinoigakukun left a comment

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.