Search code examples
automated-testsgoogle-cloud-storagemochawesome

HTML page (Mochawesome Report) doesn't load on Google Cloud?


I'm running API tests using GitHub Actions and I want to upload to the report generated by Mochawesome to Google Cloud so I can see failures clearly without digging through CI logs. I have the upload part working but when I view the html file on Google Cloud it doesn't load, I just get a blank white page. I'm uploading the css files too so why isn't the html file loading?

enter image description here enter image description here


Solution

  • Using cdn for assets resolves the isssue .mocharc.js:

    module.exports = {
        reporter: 'node_modules/mochawesome',
        'reporter-option': [
            'cdn=true',
            'timestamp=true'    
        ],
    };