NickTomlin / protractor-flake

Rerun potentially flakey protractor tests before failing.
MIT License
80 stars 51 forks source link

Protractor-flake doesn't rerun all specs with failed tests #65

Closed klodiya closed 7 years ago

klodiya commented 7 years ago

For example after the first run I have 46 tests failing from 22 specs. It prints and executes a list of only 11 specs. What can be the reason for that?

TrishaChetani commented 7 years ago

What the solution ? i am trying to implement same. Flake file :

!/usr/bin/env node

/**

// skip first two passed args (node and self) let protractorArgs = process.argv.splice(2); protractorFlake({ protractorPath: 'node_modules/.bin/protractor', maxAttempts: 2, parser: 'multi', nodeBin: 'node', color: 'magenta', protractorArgs: protractorArgs }, function(status, output) { process.exit(status); });

What will be right way to implement parser which will execute only failed test

NickTomlin commented 7 years ago

@Trisha1212 could you open a new issue with the test output? Typically this is due to a reporter or test framework tweak that is changing the output to an unexpected format.

Also, you shouldn't need to use a wrapper scrip like the one that you've posted, the protractor-flake bin should do all that for you automatically.

Thanks! 😄

TrishaChetani commented 7 years ago

Thank you for the reply. https://github.com/NickTomlin/protractor-flake/issues/79