Why use TestBalloon?
I didn't know Kotlin testing could be that easy.
Concise and easy like Kotlin🔗
With its Kotlin-first, DSL-based API, TestBalloon eliminates bloat from test code, letting you focus on your domain.(1)
- Find examples in the documentation's sections on Migrating from JUnit and other test frameworks.
TestBalloon's elegant, small-surface API and the power of Kotlin keep testing easy as your projects grow, and as you scale up (more complex interactions) or out (across targets).
Perfectly integrated🔗
TestBalloon is compatible with existing assertion libraries and Kotlin Power Assert.
TestBalloon integrates thoroughly with the platforms' existing APIs and build tooling, using the familiar Gradle tasks and Kotlin's own platform-specific test runtimes.
It supports all Kotlin target platforms(1) in first-party quality (including Android device tests and Robolectric). TestBalloon has full coroutine support built in.
- TestBalloon supports all Kotlin target platforms (JVM, JS, WebAssembly, Android host-side tests, Android device-side tests, Linux, Windows, iOS, macOS and other Apple targets).
Capable🔗
TestBalloon provides easy access to the most advanced capabilities in Kotlin testing:
- Parameterized tests
- Multi-level hierarchy
- Coroutines
- Coroutine context inheritance
- Deep parallelism
- Fixtures
- Expressive names
- Scope-friendly DSL
- Configuration via decorator chains
Empowering🔗
TestBalloon helps you lift product quality, save time and actually make testing enjoyable.
- Write better tests (parameterize them)
- with less effort (using your Kotlin skills and a simple API)
- on all platforms (with native integration that just works).
What else?
- Stay organized (with expressive names and a multi-level hierarchy),
- get faster results (with deep parallelism in test runs),
- remain compatible (with all Kotlin releases since 2.0).
Robust🔗
TestBalloon consists of production-quality code and has been intensively tested. Its own test suite runs all component tests on all Kotlin targets, plus integration tests on all Kotlin target categories.
Fast🔗
TestBalloon can cover large test sets and has been observed running 1.7 million real-world tests in 86 seconds on a Framework 13 Laptop (18 cores, 4 GB JVM heap) with concurrent execution enabled.
Production-ready🔗
TestBalloon is actively used in production at scale.
Open source products using TestBalloon include:
- Prepared – a Kotlin Multiplatform test library featuring time management, parameterization and isolated fixtures
- Signum – a Kotlin Multiplatform crypto/PKI library and ASN1 parser + encoder
- VC-K – a verifiable credentials library for Kotlin Multiplatform
- Warden Supreme – an integrated key and app attestation suite
Of course, advanced testing is often found in closed-source products, and TestBalloon is in active use there as well.
Stability🔗
At version 1.0.0, TestBalloon became stable. It follows semantic versioning. Breaking changes are documented in the release notes, along with migration guidance.
Start writing great tests!🔗
TestBalloon is your trouble reducer and helps you release with confidence.
- Powerful multiplatform testing made easy.
- Test more (edge) cases with less effort.
- Keep your AI-generated code in check.