-
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
Open
mw-kapilg
wants to merge
33
commits into
dev_main
Choose a base branch
from
kapilg/test-results-visualization
base: dev_main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 30 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
b7b737a
commit to draft test procedure
mw-kapilg a65e93f
update finally block
mw-kapilg 49e7bee
fix merge conflicts
mw-kapilg a7bd44b
Update actions
mw-kapilg eb83cb6
Change build colors
mw-kapilg dc059ae
fix merge conflicts
mw-kapilg 9d79737
update colour scheme
mw-kapilg 12ebdc3
add tests
mw-kapilg f917c1f
remove extra comments
mw-kapilg 284d2df
try fix for ci test failure
mw-kapilg 0f4b801
try fix for ci test failure
mw-kapilg fe6fab8
add debug statements
mw-kapilg cfb1795
debug failure
mw-kapilg 2071d66
debug
mw-kapilg e50a7c7
update input stream
mw-kapilg 620bceb
update paths
mw-kapilg 1c068e4
update test workspace
mw-kapilg 7725c3a
more debugging
mw-kapilg 16f0988
fix testcase workspace
mw-kapilg 213cfad
final fix (hopefully)
mw-kapilg 46666c9
revert filepath
mw-kapilg cb2f6e8
remove absolute path
mw-kapilg fb7793b
update workspace path
mw-kapilg 678a12d
add logger
mw-kapilg 7b746fd
update test
mw-kapilg 2d81d41
update test data
mw-kapilg 06b2d12
Specify java version in yml
mw-kapilg c15e013
update slave label
mw-kapilg 40a7af4
add null checks
mw-kapilg 3517803
add null check
mw-kapilg 34c1a5b
Update as per review comments
mw-kapilg 2a7c908
resolve conflicts
mw-kapilg 49cbe24
resolve conflicts
mw-kapilg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,6 @@ src/main/resources/**/run-matlab-command* | |
src/main/resources/license.txt | ||
|
||
.idea/ | ||
matlab.iml | ||
|
||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
package com.mathworks.ci; | ||
|
||
/** | ||
* Copyright 2024, The MathWorks Inc. | ||
* | ||
*/ | ||
|
||
import java.util.List; | ||
import java.util.ArrayList; | ||
|
||
import org.apache.commons.lang.RandomStringUtils; | ||
|
||
public class TestCase { | ||
mw-kapilg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
private String name; | ||
private List<TestDiagnostics> diagnostics; | ||
private boolean passed; | ||
private boolean failed; | ||
private boolean incomplete; | ||
private String status; | ||
private Double duration; | ||
private String id; | ||
|
||
public TestCase() { | ||
name = ""; | ||
mw-kapilg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
diagnostics = new ArrayList<TestDiagnostics>(); | ||
passed = false; | ||
failed = false; | ||
incomplete = false; | ||
status = "NotRun"; | ||
mw-kapilg marked this conversation as resolved.
Show resolved
Hide resolved
mw-kapilg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
duration = 0.0; | ||
id = RandomStringUtils.randomAlphanumeric(8); | ||
} | ||
|
||
public void updateStatus() { | ||
mw-kapilg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
if (failed){ | ||
status = "Failed"; | ||
} | ||
else if (incomplete) { | ||
status = "Incomplete"; | ||
} | ||
else if(passed) { | ||
status = "Passed"; | ||
} | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public List<TestDiagnostics> getDiagnostics() { | ||
return this.diagnostics; | ||
} | ||
|
||
public void setDiagnostics(List<TestDiagnostics> diagnostics) { | ||
this.diagnostics = diagnostics; | ||
} | ||
|
||
public boolean getPassed() { | ||
return this.passed; | ||
} | ||
|
||
public void setPassed(boolean passed) { | ||
this.passed = passed; | ||
} | ||
|
||
public boolean getFailed() { | ||
return this.failed; | ||
} | ||
|
||
public void setFailed(boolean failed) { | ||
this.failed = failed; | ||
} | ||
|
||
public boolean getIncomplete() { | ||
return this.incomplete; | ||
} | ||
|
||
public void setIncomplete(boolean incomplete) { | ||
this.incomplete = incomplete; | ||
} | ||
|
||
public String getStatus() { | ||
return this.status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
} | ||
|
||
public Double getDuration() { | ||
return this.duration; | ||
} | ||
|
||
public void setDuration(Double duration) { | ||
this.duration = duration; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.mathworks.ci; | ||
|
||
/** | ||
* Copyright 2024, The MathWorks Inc. | ||
* | ||
*/ | ||
|
||
import org.apache.commons.lang.RandomStringUtils; | ||
|
||
public class TestDiagnostics { | ||
mw-kapilg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
private String event; | ||
private String report; | ||
private String id; | ||
|
||
public TestDiagnostics() { | ||
event = ""; | ||
mw-kapilg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
report = ""; | ||
id = RandomStringUtils.randomAlphanumeric(8); | ||
} | ||
|
||
public String getEvent() { | ||
return this.event; | ||
} | ||
|
||
public void setEvent(String event) { | ||
this.event = event; | ||
} | ||
|
||
public String getReport() { | ||
return this.report; | ||
} | ||
|
||
public void setReport(String report) { | ||
this.report = report; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
package com.mathworks.ci; | ||
|
||
/** | ||
* Copyright 2024, The MathWorks Inc. | ||
* | ||
*/ | ||
|
||
import java.util.List; | ||
import java.util.ArrayList; | ||
|
||
import org.apache.commons.lang.RandomStringUtils; | ||
|
||
public class TestFile { | ||
private String filePath; | ||
private String name; | ||
private Double duration; | ||
private String status; | ||
private List<TestCase> testCases; | ||
private String id; | ||
|
||
public TestFile() { | ||
filePath = ""; | ||
name = ""; | ||
duration = 0.0; | ||
status = "NotRun"; | ||
mw-kapilg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
testCases = new ArrayList<TestCase>(); | ||
|
||
mw-kapilg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
id = RandomStringUtils.randomAlphanumeric(8); | ||
} | ||
|
||
public void incrementDuration(Double testCaseDuration) { | ||
this.duration += testCaseDuration; | ||
} | ||
|
||
public void updateStatus(TestCase testCase) { | ||
if (!status.equals("Failed")){ | ||
mw-kapilg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
if (testCase.getFailed()){ | ||
status = "Failed"; | ||
} | ||
else if (!status.equals("Incomplete")){ | ||
mw-kapilg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
if (testCase.getIncomplete()){ | ||
status = "Incomplete"; | ||
} | ||
else if (testCase.getPassed()){ | ||
status = "Passed"; | ||
} | ||
} | ||
} | ||
} | ||
|
||
public String getFilePath() { | ||
return this.filePath; | ||
} | ||
|
||
public void setFilePath(String filePath) { | ||
mw-kapilg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
this.filePath = filePath; | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public Double getDuration() { | ||
return this.duration; | ||
} | ||
|
||
public void setDuration(Double duration) { | ||
this.duration = duration; | ||
} | ||
|
||
public String getStatus() { | ||
return this.status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
} | ||
|
||
public List<TestCase> getTestCases() { | ||
return this.testCases; | ||
} | ||
|
||
public void setTestCases(List<TestCase> testCases) { | ||
this.testCases = testCases; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
since We are updating this, could we consider updating it to the latest ? https://github.com/jenkinsci/bom/blob/master/README.md