Open adi518 opened 2 years ago
Hey, I was getting the same problem with the 404... the two changes that worked for me: The artifacts: ConfigFilePath
and the artifacts: files
. I think you need:
configFilePath: report/mochawesome.json
files: - "**/*.html"
Hope that helps π
I'll give it a shot and if it fixes it, the docs MUST be fixed ASAP. π
Its weird, I was stuck on this a little while but nowhere in the docs could I find this highlighted.. it seems obvious now that I know!
Still not working. I'm tired of this guessing game.
@adi518 we will be addressing this as priority.
Hi @adi518 ππ½, can you provide reproduction steps or a demo repository that reproduces this 404 behavior?
@hloriana Just check out my app from the app id above. You can run a preview build and debug from there.
Having same issue, does anyone figure out how to fix it? π CC @hloriana
No fix and it's probably stupid easy to fix, yet they don't prioritize it.
It's unclear how the cypress.config of the application being tested experiencing the 404 is configured given the original information. It could be that the config is missing the reporter options that typically in the examples is supplied by external arguments. That may explain "why it's not working" because it would be reasonable to assume the report files are not being generated.
In the Add tests to your existing Amplify app example the reporter options are explicitly added via:
'npx cypress run --reporter mochawesome --reporter-options "reportDir=cypress/report/mochawesome-report,overwrite=false,html=false,json=true,timestamp=mmddyyyy_HHMMss"'
Perhaps try replacing yarn test:e2e:ci
with the above or ensure your cypress config is setup to write the reports as expected.
Anything new on the topic?
Before opening, please confirm:
App Id
dazj4he0xk1lv
Region
us-east-1
Amplify Console feature
Previews
Describe the bug
Can't download Cypress tests results.
Expected behavior
Can download Cypress tests results.
Reproduction steps
Deploy with Cypress tests
Build Settings
Additional information
I'm also not seeing a "pretty" display of the tests, it's just the log, which makes it very hard to figure out what happened when tests fail. I checked #176, but it doesn't fix it.