maciejmaciejewski / azure-pipelines-protractor

Embed Protractor HTML report in Azure Pipelines
MIT License
3 stars 3 forks source link

Error: Could not find report file #16

Closed pamelafracalossi closed 4 years ago

pamelafracalossi commented 4 years ago

YAML setup:

image

Protractor conf:

image

Azure Result:

image

What am I doing wrong?

maciejmaciejewski commented 4 years ago

Hey 👋 There is most probably mismatch between directories. I see that in script your working directory is $(Build. SourcesDirectory)/automacao but in the report publish task you are using $(System.DefaultWorkingDirectory)/protractor.

According to documentation Both variables should resolve to the same value, for example c:\agent_work\1\s

Plase make sure that the path are correct, to validate please run your build with system.debug variable set to true.

pamelafracalossi commented 4 years ago

@maciejmaciejewski thank you very much. I changed my working directory and the problem was solved. I will leave it below a final configuration in case someone needs it in the future.

image