Protractor Junit Flake
Rerun potentially flakey protractor tests before failing (Based on Junit XML). Runs only the specific failing test using jasmine's spec filter functionality.
npm i protractor-junit-flake # or globally for easier cli usage npm i -g protractor-junit-flake
Usage
Via the CLI:
npm i -g protractor-junit-flake # protractor-junit-flake <protractor-junit-flake-options> -- <options to be passed to protractor> protractor-junit-flake --results-xml-path=path/to/results-*.xml --max-attempts=3 -- path/to/protractor.conf.js
See src/parse-options.js for the full list of command line options.
Protractor Junit flake expects protractor
to be on $PATH by default, but you can use the --protractor-path
argument to point to the protractor executable.
Or programmatically:
var protractorFlake = ; // Default Options // Full Options;