-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add test results visualization #360
base: dev_main
Are you sure you want to change the base?
Conversation
Test Name | ||
</th> | ||
<th class="pane-header" style="width: auto; min-width: 10em; text-align: right;"> | ||
Duration (seconds) |
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.
(s) instead of (seconds)?
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.
Is it better to include + and - signs or drop-down arrows instead?
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.
Updated (seconds) to (s)
Is it better to include + and - signs or drop-down arrows instead?
I didn't get this, could you explain?
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.
Nothing major. Currently, it seems that you use the + and - buttons to expand and collapse sections in the report. I was wondering whether a drop-down arrow could do the same. In the test browser, we resort to the arrow for expansion: https://www.mathworks.com/help/matlab/matlab_prog/run-tests-using-test-browser.html#:~:text=You%20can%20also%20add%20tests%20to%20the%20test%20browser%20by%20clicking%20the%20drop%2Ddown%20arrow
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.
That's true. For reference I had a look at the Jenkins JUnit and TAP plugins which were using + and - symbols to expand and collapse. I don't mind the chevrons either, do you feel using them for dropdowns would be more helpful for the user?
src/main/resources/com/mathworks/ci/TestResultsViewAction/index.jelly
Outdated
Show resolved
Hide resolved
src/main/resources/com/mathworks/ci/TestResultsViewAction/index.jelly
Outdated
Show resolved
Hide resolved
src/main/java/com/mathworks/ci/utilities/MatlabCommandRunner.java
Outdated
Show resolved
Hide resolved
src/test/java/integ/com/mathworks/ci/TestResultsViewActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/integ/com/mathworks/ci/TestResultsViewActionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/integ/com/mathworks/ci/TestResultsViewActionTest.java
Outdated
Show resolved
Hide resolved
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.
Looking good! I like the changes to MatlabTestCase
and MatlabTestFile
. A few more things in the MATLAB code for the TestRunnerPlugin then it should be ready to go.
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.
Just some minor comments from me! The only blocker I see is what David mentioned with the cleanup code for the plugin.
methods (Access=protected) | ||
function reportFinalizedSuite(plugin, pluginData) | ||
% Checkout MATLAB Test license | ||
license('checkout', 'matlab_test'); |
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'm still slightly worried about this. I think ideally for me we'd do the license check and checkout at the same time, just to avoid any situations where MATLAB Test was available initially at the time of the first check but not at the time of reporting the finalized suite. Probably not a big deal though.
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 think it should be fine. Do you have a case in mind where the situation you're saying could happen?
This feature creates an in-platform view for MATLAB test results (whenever a default test runner or pre-made TestTask is used) if the user has a MATLAB Test license.
Key highlights:
Here's a few snapshots:
![Screenshot 2024-09-18 113256](https://private-user-images.githubusercontent.com/111856426/368439703-eaca1ac3-70ab-479d-8a2a-7fb9c11e2670.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzkxMDUsIm5iZiI6MTczOTE3ODgwNSwicGF0aCI6Ii8xMTE4NTY0MjYvMzY4NDM5NzAzLWVhY2ExYWMzLTcwYWItNDc5ZC04YTJhLTdmYjljMTFlMjY3MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE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