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

Custom assessment output #18

Open
nikravi opened this issue Jan 15, 2016 · 2 comments
Open

Custom assessment output #18

nikravi opened this issue Jan 15, 2016 · 2 comments
Labels

Comments

@nikravi
Copy link

nikravi commented Jan 15, 2016

Hi Gleb,

We totally love this utility, and we've come up to use for our protractor tests runner (nodejs environment). The issue is that in the newest Protractor, throwing an error will stop the testing. We want to continue, and we'll get all the reporting after. Is it possible to configure lazyAss to call a function, instead of

throw err;output(err)

The default should be kept as is (throwing errors), and in some cases we want to do console.log or any other output stream we'll come up with.

Thanks!

@bahmutov
Copy link
Owner

Is there no flag for Protractor to continue even if a test fails or an error is thrown?

@nikravi
Copy link
Author

nikravi commented Jan 15, 2016

I guess no, it's actually in Jasmine. What we really want to fix is to get the detailed 'expect' message, this issue is still not fixed jasmine/jasmine#641. Our workaround is like this: first expect, then check with lazy-ass the same condition.

            expect(text.indexOf(expectedText)).toBeGreaterThan(-1);
            la(index > -1, 'expected', text, 'to contain', expectedText);

Would be nice if lazy-ass could output it's parsing, then we can create a PR to jasmine using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants