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

Use subtests #29

Closed
schwern opened this issue Mar 4, 2013 · 2 comments
Closed

Use subtests #29

schwern opened this issue Mar 4, 2013 · 2 comments

Comments

@schwern
Copy link
Contributor

schwern commented Mar 4, 2013

This would all be a whole lot simpler if each call to ok ran all the tests as a subtest.

Right now, a Test::Proto test produces a single ok line. This isn't a very good indication of what's really going on. It also goes to some lengths to implement existing Test::More and Test::Builder functions itself so they only fail. Finally, only the first test fails which doesn't give the full story for debugging.

If ok ran validate in a subtest, then each test method (is_like and so on) can run as a normal test, succeeding or failing. The normal Test::More and Test::Builder calls can be used. And all test output and failures can be displayed.

@pdl
Copy link
Owner

pdl commented Mar 4, 2013

I agree. It is issue #1 - I'm just getting there slowly so the work isn't in the master branch at the moment, nor applied to most of the prototype classes.

@pdl
Copy link
Owner

pdl commented Mar 4, 2013

Closed as duplicate.

@pdl pdl closed this as completed Mar 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants