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 tests to be marked as SKIPPED. #1275

Merged
merged 3 commits into from Jul 22, 2018

Conversation

kristate
Copy link
Contributor

closes #1274

tests can be skipped by returning error.skip

kristopher tate added 2 commits July 22, 2018 02:20
tracking issue ziglang#1274;

tests can be skipped by returnning `error.skip` :
@kristate kristate changed the title Skippable tests issue1274 Allow tests to be marked as SKIPPED. Jul 21, 2018
};

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.

@kristate kristate deleted the skippable-tests-issue1274 branch August 2, 2018 17:21
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