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

GreyAsserts don't highlight the lines where the tests fail #659

Open
setv-n13 opened this issue Nov 9, 2017 · 4 comments
Open

GreyAsserts don't highlight the lines where the tests fail #659

setv-n13 opened this issue Nov 9, 2017 · 4 comments

Comments

@setv-n13
Copy link

setv-n13 commented Nov 9, 2017

I just started to use EarlGrey in my UI tests, and I mentioned that GreyAsserts do not highlight the lines in files where they were activated:
image

No error message, no highlighted line, where the test failed, but if we jump to definition of GREYAssert, we'll find it:
image

I suppose that it should work the same way as XCTAssert does:
image

So the error will be shown right in place where it happened in test-file, which is easy to trace, and the CI reports will show the correct position and message.

Is that the issue of EarlGrey, or I just do something wrong?

P.S. EarlGrey 1.4.0.beta.2

@tirodkar
Copy link
Collaborator

tirodkar commented Nov 9, 2017

@bootstraponline this seems similar to #95 ?

@bootstraponline
Copy link
Contributor

Yes, looks like the same issue.

@setv-n13
Copy link
Author

So, is it possible to fix this now, or just wait for EarlGrey update?

@bootstraponline
Copy link
Contributor

You can work around the issue for now. Details are in that link

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

No branches or pull requests

3 participants