Skip to main content

11 posts tagged with "Xcepto"

Posts about the Xcepto testing framework

View All Tags

I built xcepto-skill so AI agents can write better Xcepto tests

· 2 min read
Daniel Maß
Maintainer of Xcepto

Xcepto is still new, and that created an unexpected problem: AI agents were bad at writing Xcepto tests.

Not because the tests were impossible — but because the model had almost no reliable context. When I asked Codex to write Xcepto tests, it usually tried to infer the framework from whatever it could find. Sometimes it checked out Xcepto.NET somewhere temporary. Sometimes it guessed APIs through reflection. Sometimes it copied local fragments without really understanding the test model.

Same test. Different runtime. Different behavior. Why?

· One min read
Daniel Maß
Maintainer of Xcepto

That's the pain of cross-platform development. Especially when switching between async .NET and Unity coroutines.

  • Backend runner: ✔ works
  • Frame-spaced execution: ❌ blocks, ❌ freezes, ❌ partially executes

Runtimes often leak into behavior. But a good abstraction should preserve semantics.

Why aren't tests as composable as production code?

· One min read
Daniel Maß
Maintainer of Xcepto

If test code were just explicitly wired dependencies in local variables, composition would be straightforward.

But once you introduce asynchronous processing, messaging, or higher-level test frameworks, what the test is actually doing becomes opaque.

  • Execution order becomes implicit.
  • Data flow becomes hidden.
  • Coordination turns into guesswork.

2 Builders, 1 Code? WithCRTP()

· One min read
Daniel Maß
Maintainer of Xcepto

Did you ever copy-paste builder methods across similar builders and just accept it?

This is especially painful when creating multi-stage fluent APIs — ones that only expose valid methods at each build step.

CRTP (Curiously Recurring Template Pattern) eliminates this entirely. It lets base classes return the concrete builder type instead of the abstract one.