I'm not quite sure what you are trying to do here? So you run the tests and
then you run the failed tests in
the same execution???
Anyways, the suiteXml file *must* exist prior to invocation (in the case
here, you are binding both executions
to the same default phase, which is another problem in itself, look at the
plugin doc. in Maven site). What you
really want to do is move the second execution in a Profile and then
activate the Profile to run failed test, but
make *sure* you don't clean the target directory.
I don't know which version of M2 you are using…the ordering is *not* guaranteed in version < 2.0.9.
Second thing, maybe I am missing something here..if the tests from the same suite have failed won't
immediately running those same tests fail again?
Use a profile and bind it to different phases (the min. should be test of course) if want to run the mvn
command once (like I said, the $target directory with the testing failed *must* exist for the second
execution) (although I'm still failing to see the point here). Ideally, you run the tests..some fail..you
fix the tests..but don't want to rerun the whole tests..invoke with suiteXml == testing-failed.xml
Thanks,
mohan kr