Repository navigation
ci(xbox): publish coverage from xemu guest tests - #388
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #388 +/- ##
==========================================
- Coverage 90.95% 88.73% -2.23%
==========================================
Files 81 83 +2
Lines 9532 9451 -81
Branches 4012 4062 +50
==========================================
- Hits 8670 8386 -284
- Misses 751 957 +206
+ Partials 111 108 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 41 files with indirect coverage changes Continue to review full report in Codecov by Harness.
|
Build artifactsArtifacts from workflow run 46176950485:
You must be signed in to GitHub to download workflow artifacts. |
ReenigneArcher
left a comment
There was a problem hiding this comment.
Does this run the regular tests in xemu or only the time_test.cpp?
ReenigneArcher
left a comment
There was a problem hiding this comment.
Is it possible to have colored output from xemu to stdout, specifically for the gtest suite?
In file included from /home/runner/work/Sunshine-client/Sunshine-client/src/app/screenshot_library.cpp:21:
/home/runner/work/Sunshine-client/Sunshine-client/src/_nxdk_compat/include/sunshine_time.h:29:34: warning: result of comparison of constant 910692730085 with expression of type 'std::time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
29 | if (timestamp < 0 || timestamp > std::numeric_limitsstd::int64_t::max() / ticksPerSecond - epochOffset) {
| ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
Should this be fixed?
|



Description
Build an instrumented nxdk test ISO using the same GoogleTest entry point as the desktop suite. The Xbox target adds platform tests and streams colored GoogleTest output directly through xemu, including
[ RUN ]as each test starts. It exports test results and gcov counters on COM2, pairs the counters with the matching build’s notes, and verifies execution in both Xbox timing adapters.The Linux, Windows, and macOS Xbox jobs set up the latest xemu release before building the ISO. Each desktop and Xbox job produces its own JUnit and LCOV artifacts. A dedicated coverage workflow downloads those artifacts and publishes both reports to Codecov with per-platform flags.
Screenshot
Issues Fixed or Closed
Roadmap Issues
Testing
SunshineTests.isoin UCRT64 and verified all 529 tests pass in local xemu. The console emits ANSI color for each[ RUN ]line. The new test covers the last representable Xbox Unix second and the compiler emits no out-of-range comparison warning.apidocumentation build, C/C++ formatting, and workflow and CMake lint checks passed locally.Type of Change
Checklist
AI Usage
See our AI usage policy.