SkillAgentSearch skills...

Luce

A Swift test assertion library

Install / Use

/learn @patriksvensson/Luce
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Luce

Luce is a test assertion library inspired by Shouldly that allows you to write your test assertions fluently.

[!NOTE]
Requires Swift 6.0

import PackageDescription

let package = Package(
    // ... omitted
    dependencies: [
        .package(url: "https://github.com/patriksvensson/luce", branch: "main")
    ]
)

Usage

import Luce
import Testing

@Suite final class MyTestSuite {
    @Test func myTest() {
        // Given, When
        let foo: String? = "Hello World"

        // Then
        foo.shouldNotBeNil()
           .shouldBe("Hello World")
    }
}
View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1y ago
Forks0

Languages

Swift

Security Score

55/100

Audited on Oct 25, 2024

No findings