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

How to record all the failed tests and test throw error in minitest #524

Closed
leo-altiscale opened this issue Apr 19, 2015 · 2 comments
Closed
Assignees

Comments

@leo-altiscale
Copy link

Hi

How to record all the failed tests and test throws error after all the test finish running in minitest

Supposed after I run 100 tests, test_name in NameTestSuite failed, test_date in DateTestSuite throws a timeout error. after the 100 tests finish running
I wana record the information below in some file, like failedtest.txt or failedtest.xml
test_name in NameTestSuite & test_date in DateTestSuite

Thx for your time

Leo

@zenspider
Copy link
Collaborator

I'm not sure I understand your question. minitest is already recording and reporting such information. If you want it in a text file, redirect the run to a text file:

rake > failedtest.txt

If you want something more specialized than that, you probably need to write a custom reporter.

@zenspider zenspider self-assigned this Apr 20, 2015
@zenspider
Copy link
Collaborator

No response. Closing.

@minitest minitest locked and limited conversation to collaborators May 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants