-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[p5.js 2.0] Bring back a way to show the results of visual tests visually #7618
Comments
If displaying visual test results in GH Actions is doable, I think that would be really exciting! |
For displaying the results in GH actions, I was thinking of the following steps
For this I can update the current github workflow in ci-test.yml or I can create a new workflow for visual testing. @davepagurek @ksen0 let me know your thoughts on this... Now for viewing the results, we may have some options, Secondly, we can implement github pages deployment, |
That sounds good @Vaivaswat2244! I think if we save the actual results similar to how we save the expected results (but added to the .gitignore, since they don't need to be checked into source control), then we can collect them at the end of a test run and generate an HTML report. Making a downloadable zip would be a good start since there might be some questions for a GH pages deploy that don't have easy answers, e.g. do we have to keep the pages live for every test run forever? So for now just having a downloadable file might work. Another thought: we might be able to have a single .html file rather than a zip if, when generating the page, rather than using |
Increasing access
In 1.x, when I first added visual tests, there was also a page you could go to where you could see what we were expecting and what the results are:
I think this view is really helpful in showing contributors how our testing works, and what is already covered by tests. We don't currently have this in 2.0.
Most appropriate sub-area of p5.js?
Feature request details
Our tests are now run in vitest, and within that testing framework, I have not (yet) found a way to do a custom HTML display of test results in order to show pictures. For now, we just output a base64-encoded image URL that you can paste into your browser. This works for failed test cases, but makes it hard to get an overview of the current state of tests.
Is there a way in vitest to make a custom report that could embed the expected and actual visual test results? Or maybe in github actions?
The text was updated successfully, but these errors were encountered: