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

Allow marking tests as explicitly unimplemented #319

Merged
merged 2 commits into from
Nov 4, 2020

Conversation

kainino0x
Copy link
Collaborator

@kainino0x kainino0x commented Oct 23, 2020

This allows for test structure to be committed into the CTS before the
tests themselves are implemented.

Also hide SKIP error messages when not in "debugging" mode.

This allows for test structure to be committed into the CTS before the
tests themselves are implemented.
Copy link
Collaborator

@austinEng austinEng left a comment

Choose a reason for hiding this comment

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

sorry missed this one

assert(this.testFn !== undefined, () => {
let s = `Test is missing .fn(): ${testPathString}`;
if (this.testConstructorStack.stack) {
s += `\n-> test created at:\n${this.testConstructorStack.stack}`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

at least in Chrome, i think this will say:

-> test created at:
Error
___ at ...
___ at ...

I remember you may have some utilities elsewhere that separate the "Error" message and the stack ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, in chrome it will. I think I used to have utilities to do that but they just stripped the first line from the message, and that doesn't actually work (message could have a newline in it, some engines don't put a line at the top of .stack, etc.)

@kainino0x kainino0x merged commit fba2630 into gpuweb:main Nov 4, 2020
@kainino0x kainino0x deleted the unimplemented branch November 4, 2020 21:38
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.

2 participants