• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

excaliburjs / Excalibur / 14840900291
89%

Build:
DEFAULT BRANCH: main
Ran 05 May 2025 04:15PM UTC
Jobs 1
Files 236
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 May 2025 04:07PM UTC coverage: 87.864% (-1.5%) from 89.319%
14840900291

push

github

web-flow
chore: migrate tests to vitest (#3381)

managed to migrate the engine leak & memory reporters, although it took a bit of rigamarole. Mainly because, as opposed to karma, the reporter runs in node and not the browser. So I have to track the data needed separately in some global hooks _within_ the browser environment, which the reporter then reads and creates the logs if needed.

However, it seems the memory tracking is regularly reporting >1 mb, so I'm not sure if it's tracking properly or if things have changed with the new browsers. My only theory is that because the timing where memory is read is during an `afterEach` _before_ the test's `afterEach`, it's running before any potential cleanup. The timing of this is not something that's easy to control, unfortunately. I did try to prove this theory by doing the memory analysis on the next test's `beforeEach`, but it didnt seem to change the results, so it may not be an issue.

Implementation is done in `src/spec/vitest/__reporters__/memory.ts` and `src/spec/vitest/__reporters/memory.setup.ts`

---

I noticed CouroutineSpec was an offender for >10mb memory, which spins up additional engines. I added a short 100ms wait after the engine.dispose and the memory usage did drop, so it does seem like this is prone to scheduled garbage collecting.

---

I was able to run the garbage collector (if exposed, currently only on chrome) and this makes the reports more accurate

4998 of 6942 branches covered (72.0%)

13655 of 15541 relevant lines covered (87.86%)

25166.19 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.24
-4.76% src/engine/Collision/Group/CollisionGroup.ts
1
86.54
-1.7% src/engine/Graphics/GraphicsGroup.ts
1
87.68
-0.64% src/engine/Graphics/GraphicsSystem.ts
1
96.34
-1.22% src/engine/Graphics/Graphic.ts
1
98.82
-1.18% src/engine/Graphics/Raster.ts
1
73.66
-0.45% src/engine/Input/PointerEventReceiver.ts
1
97.87
-0.71% src/engine/Math/transform.ts
3
93.98
-2.41% src/engine/Graphics/Context/render-target.ts
5
88.76
-1.27% src/engine/Engine.ts
21
64.52
-33.87% src/engine/Graphics/Font.ts
21
39.53
-48.84% src/engine/Graphics/Text.ts
24
42.86
-57.14% src/engine/Graphics/FontCache.ts
25
70.59
-29.41% src/engine/Graphics/SpriteFont.ts
90
30.99
-63.3% src/engine/Graphics/FontTextInstance.ts
Jobs
ID Job ID Ran Files Coverage
1 14840900291.1 05 May 2025 04:15PM UTC 236
87.86
GitHub Action Run
Source Files on build 14840900291
  • Tree
  • List 236
  • Changed 179
  • Source Changed 171
  • Coverage Changed 120
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #14840900291
  • 71a526f2 on github
  • Prev Build on main (#14784946571)
  • Next Build on main (#14840900305)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc