Skip generating reports for empty resolves
Review Request #3625 - Created March 29, 2016 and submitted
|Nick Howard (Twitter)|
|benjyw, molsen, zundel|
Currently, when no resolve was run, but the user requested a report, ivy resolve will fail looking for the report file.
This changes that behavior so that if a resolve result has no associated artifacts, an html report won't be generated and if all the resolve results were empty, it will log a message to that effect to the console.
Wrote tests to replicate the behavior, replicated the failure and made them pass.
CI away on the PR: 3114.
This will be a little cryptic for the user. Why was no resolution performed? Is this an error?
Does it make sense to instead "generate" an empty report (i.e., some hard-coded XML document that our report parsers will understand as representing an empty report) and not log anything? After all, this is a legitimate state to be in, no?
Revision 2 (+20 -2)