fluent-assert

Wrap AssertJ with a fluent Kotlin .assert() API for readable test assertions.

23|1|Updated Dec 1, 2023
One-click install
npx skills add https://github.com/Ahoo-Wang/wow-project-template --skill fluent-assert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fluent-assert
Source: https://github.com/Ahoo-Wang/wow-project-template/tree/main/.agents/skills/fluent-assert
Command: npx skills add https://github.com/Ahoo-Wang/wow-project-template --skill fluent-assert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Verbose Kotlin test assertions are streamlined by the fluent .assert() API that wraps AssertJ with Kotlin-friendly syntax.

Core Features & Use Cases

  • Fluent assertions in Kotlin tests using value.assert() chains.
  • Compatibility with JUnit 4/5 and Wow saga tests, enabling readable, Kotlin-friendly assertion workflows.
  • Real-world usage: write assertions like myList.assert().hasSize(3).contains("foo").

Quick Start

Use the Kotlin assertion API via import me.ahoo.test.asserts.assert and start writing fluent assertions like value.assert().isNotNull().

Frequently Asked Questions about fluent-assert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write fluent assertions in Kotlin unit tests?

You can write fluent assertions in Kotlin unit tests by using the value.assert() API, which wraps AssertJ to provide readable, chained checks like myList.assert().hasSize(3).contains("foo").

Does this fluent assertion API work with JUnit 4 and JUnit 5?

Yes, the fluent assertion API is fully compatible with both JUnit 4 and JUnit 5, as well as Wow saga tests, enabling readable Kotlin-friendly assertion workflows across these frameworks.

What is the best way to simplify verbose Kotlin test assertions?

The best way to simplify verbose Kotlin test assertions is using a fluent .assert() API that wraps AssertJ with Kotlin-friendly syntax, providing null-safety and readable chained checks.

How do I start using the Kotlin assert API in my project?

To start using the Kotlin assert API, import me.ahoo.test.asserts.assert and write fluent assertions like value.assert().isNotNull() directly in your test cases.

Why should I use a fluent assert API instead of standard AssertJ in Kotlin?

You should use a fluent assert API to satisfy Kotlin-first design with null-safety, wrapping AssertJ to provide a more readable and Kotlin-friendly syntax for your test assertions.

Can I use fluent assertions for Wow saga tests?

Yes, you can apply fluent assertions in Wow saga tests, enabling readable chained checks via value.assert() to verify outcomes within your saga testing workflows.