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

Convert custom type tests to table driven subtests #64

Merged
merged 1 commit into from
Mar 26, 2019
Merged

Convert custom type tests to table driven subtests #64

merged 1 commit into from
Mar 26, 2019

Conversation

13rac1
Copy link
Contributor

@13rac1 13rac1 commented Mar 26, 2019

Adds many permutation of using custom types, all unimplemented features
have been skipped. The missing functionality should panic to reduce
developer confusion, but I'm leaving that out in an effort to reduce the
scope and LOCdiff.

Includes two workarounds for lack of T.Run() in Go <1.7

Adds many permutation of using custom types, all unimplemented features
have been skipped. The missing functionality should panic to reduce
developer confusion, but I'm leaving that out in an effort to reduce the
scope and LOCdiff.

Includes two workarounds for lack of T.Run() in Go <1.7
@lunixbochs lunixbochs merged commit a9e4041 into lunixbochs:master Mar 26, 2019
@lunixbochs
Copy link
Owner

merged, thanks. we can circle back to #63, I basically just want to know which tests are and aren't passing under the PR.

@13rac1 13rac1 deleted the add-tests branch March 26, 2019 17:29
@13rac1
Copy link
Contributor Author

13rac1 commented Mar 26, 2019

I basically just want to know which tests are and aren't passing under the PR.

Haha! golang/go#25951 would be so helpful in this case.

@lunixbochs
Copy link
Owner

lunixbochs commented Mar 26, 2019 via email

@13rac1
Copy link
Contributor Author

13rac1 commented Mar 26, 2019

Yes, but Skip() won't tell you about unexpected pass/fail. It just doesn't run the test case. I want to write tests which fail CI when they start working, so they get cleaned up.

@lunixbochs
Copy link
Owner

lunixbochs commented Mar 26, 2019

You're not calling Skip(). You can do whatever you want here: 049294c#diff-3df1114f2fd22239fbcd3a8751375101R296

@13rac1
Copy link
Contributor Author

13rac1 commented Mar 26, 2019

😆 Sorry, I misunderstood.

It doesn't fail right now. It just skips the sub-test like Skip() would if I could use it. I can re-implement workarounds for not having ExpectFail(), but it's ok.

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