Skip to content

Conversation

kristate
Copy link
Contributor

closes #1274

tests can be skipped by returning error.skip

kristopher tate added 3 commits July 22, 2018 02:20
};

if (skip_test == true) {
return error.skip;
Copy link
Member

Choose a reason for hiding this comment

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

It may be better to use a name such as error.SkipZigTest (open to better suggestions) since this is global and we don't want a user to possibly use this name in their own code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tiehuis Thanks!

I thought about that, but if used in user code, wouldn't it be caught before hand?

You bring up a good point and perhaps we could rename it to error.skip_test :-)

@andrewrk andrewrk merged commit c5c053b into ziglang:master Jul 22, 2018
@andrewrk
Copy link
Member

Thanks @kristate! I like your idea and implementation. I took @tiehuis's suggestion for the error name and added stats output to test runner.

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.

Implement formal way to SKIP tests
3 participants