-
Notifications
You must be signed in to change notification settings - Fork 433
Cleaned up test execution and made it more sensible #4163
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
Conversation
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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (img[0] == null) { | ||
| println("CN1SS:ERR:test=" + safeName + " message=Screenshot process timed out"); | ||
| println("CN1SS:END:" + safeName); | ||
| return false; | ||
| } | ||
| Image screenshot = img[0]; |
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.
Return after screenshot errors to avoid null dereference
When img[0] stays null (e.g., screenshot capture times out) the code only logs the error and then immediately assigns Image screenshot = img[0], continuing on to io.save(...) a few lines later. The same pattern applies to the PNG encoder check below. On devices where capture or PNG support fails, this flow will hit a NullPointerException and abort the suite instead of reporting the failure. Please return early once these error paths are hit.
Useful? React with 👍 / 👎.
.../common/src/main/java/com/codenameone/examples/hellocodenameone/tests/Cn1ssDeviceRunner.java
Outdated
Show resolved
Hide resolved
Android screenshot updatesCompared 7 screenshots: 6 matched, 1 updated.
Native Android coverage
|
d9c3e14 to
1142871
Compare
✅ Continuous Quality ReportTest & Coverage
Static Analysis
Generated automatically by the PR CI workflow. |
84f28fa to
45aec5e
Compare








No description provided.