SkillAgentSearch skills...

Testonnet

A unit testing framework for Jsonnet.

Install / Use

/learn @jsonnet-libs/Testonnet
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Testonnet

A unit test framework for Jsonnet. This library is inspired by jsonnetunit, it follows the object-oriented approach.

Install

jb install github.com/jsonnet-libs/testonnet@master

Usage

local test = import "github.com/jsonnet-libs/testonnet/main.libsonnet";

local fact(n) = if n == 0 then 1 else n * fact(n - 1);

test.new(std.thisFile)
+ test.case.new(
  name='Fact',
  test=test.expect.eq(
    actual=fact(10),
    expected=3628800
  )
)

More docs in docs/README.md.

View on GitHub
GitHub Stars22
CategoryDevelopment
Updated9mo ago
Forks1

Languages

Jsonnet

Security Score

87/100

Audited on Jul 3, 2025

No findings