FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Fakt: Automating the Fake-over-mock pattern
NewsSystems

Fakt: Automating the Fake-over-mock pattern

via Dev.toRodrigo Sicarelli1mo ago

Kotlin testing has a problem that gets worse the more successful your project becomes. Manual test fakes don't scale—each interface requires 60-80 lines of boilerplate that silently drifts from reality during refactoring. Runtime mocking frameworks (MockK, Mockito) solve the boilerplate but introduce severe performance penalties and don't work on Kotlin/Native or WebAssembly. KSP-based tools promised compile-time generation, but Kotlin 2.0 broke them all. Fakt is a compiler plugin that generates production-quality fakes through deep integration with Kotlin's FIR and IR compilation phases—the same extension points used by Metro , a production DI framework from Zac Sweers. What Fakt Does https://github.com/rsicarelli/fakt Fakt reduces fake boilerplate to an annotation: @Fake interface AnalyticsService { fun track ( event : String ) suspend fun flush (): Result < Unit > } At compile time, Fakt generates a complete fake implementation. You use it through a type-safe factory: val fake = fak

Continue reading on Dev.to

Opens in a new tab

Read Full Article
30 views

Related Articles

My favorite color e-reader is still $80 off, but hurry if you want to save
News

My favorite color e-reader is still $80 off, but hurry if you want to save

ZDNet • 1d ago

Cosine Similarity vs Dot Product in Attention Mechanisms
News

Cosine Similarity vs Dot Product in Attention Mechanisms

Dev.to • 1d ago

RHAPSODY OF REALITIES - 30TH MARCH 2026
"What a truth this is!
News

RHAPSODY OF REALITIES - 30TH MARCH 2026 "What a truth this is!

Medium Programming • 1d ago

Grow Foundation Launches the Earliest Bug Bounty in Crypto History – 50,000,000 Grow Tokens at…
News

Grow Foundation Launches the Earliest Bug Bounty in Crypto History – 50,000,000 Grow Tokens at…

Medium Programming • 1d ago

News

Running a Plan 9 network on OpenBSD

Lobsters • 1d ago

Discover More Articles