-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feat: Add JSON and HTML apis for reports/testruns #69
base: main
Are you sure you want to change the base?
Conversation
gowtham-ra
commented
May 20, 2024
- Render ReportTestRunAll data as json instead of HTML.
- Update README for accessing the Fern-UI dashboard for test results.
README.md
Outdated
- View reports at `http://[your-api-url]/reports/testruns`. | ||
- If using `make docker-run`, reports are available at `http://localhost:8080/reports/testruns`. | ||
To view the test reports, you can use the Fern-UI frontend, | ||
which provides a visual dashboard for the test results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets leave both options ie. use fern-ui or use the embedded UI. The idea behind this is to foster innovation outside if needed using the apis we have
pkg/api/handlers/handlers.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets add new methods for fern-ui without removing the old code for static html. I would always leave the embedded here as a one stop shop so as not to depend on many external packages,.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback. I'll make the changes to support both views.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made the changes. Now by default reports/testruns return JSON. HTML is available at reports/testruns/html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would instead use /api/reports/testruns to indicate the api which returns json and leave reports/testruns as the embedded html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated this. Please let me know if everything looks okay. Thank you.
6340b75
to
9adb9df
Compare
9adb9df
to
68d5ac8
Compare