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
Exception in second_curtain #19
Comments
Hmm. Looks like a situation I had thought was not possible – that a test could fail before both a test suite and a test case were created. The offending line is: latest_test_suite.latest_test_case.latest_command.fails = true Based on the error |
afraid not, passes fine locally to me. I can do a run on travis without xcpretty. |
That would be super – I'd like to get the test output so we can set up a second_curtain test for this condition. |
Oh, I think I know what this is. If a test case case fails, second curtain tries to set the last recorded kaleidoscope command's fail property to true. But if there wasn't a last recorded command, because that test case didn't contain a "ksdiff" line, then that line is actually incorrect. Second curtain is making the assumption that whenever a test case fails, it must be due to a snapshot test case failure. I'll send a PR with a simple conditional checking if there is a command present. This won't fix the slightly greater – but probably not that big of a deal – problem of having the following scenario. expect(view).will.haveValidSnapshot(); // pass, but does emit a "ksdiff" line
expect(1).to.equal(2); //fails, but the kaleidoscope command from the previous line is recorded as a failure in second curtain That's a pretty edge case, so I'll file an issue on it and leave it for now. |
https://magnum.travis-ci.com/artsy/eigen/builds/5392603
The text was updated successfully, but these errors were encountered: