Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy nicely formatted test results to github pages #676

Open
jangko opened this issue May 21, 2021 · 2 comments
Open

Deploy nicely formatted test results to github pages #676

jangko opened this issue May 21, 2021 · 2 comments
Labels

Comments

@jangko
Copy link
Contributor

jangko commented May 21, 2021

stealing idea from https://github.com/status-im/nim-ws:
nim-ws is using github pages to store it's automatically generated test report using this github action plugin.

- name: Deploy autobahn report.
        if: runner.os == 'macos' && matrix.target.cpu == 'amd64'
        uses: peaceiris/actions-gh-pages@v3
        with:
          personal_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./nim-ws/autobahn/reports/servers

and you can see the result here: https://status-im.github.io/nim-ws/

what we need is convert our markdown generator to produce something more suitable for display.

@jangko jangko added the tests label May 21, 2021
@jangko
Copy link
Contributor Author

jangko commented May 23, 2021

found this excellent report generator
https://www.npmjs.com/package/mochawesome-report-generator
we only need to generate mocha test report json file.
and then the report generator will generate a nicely formatted html
and then we can use the above gha to deploy the results.

@jangko
Copy link
Contributor Author

jangko commented May 23, 2021

this is the POC of peaceiris/actions-gh-pages combined with mochawesome-report-generator
applied to nim-graphql can be viewed here https://status-im.github.io/nim-graphql/

time to polish it and make it more generic for everyone to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant