Getting Started
This guide walks you through installing Scriptorium.Quill and Scriptorium.Nib, writing your first test, and running it.
Prerequisites
Section titled “Prerequisites”Required:
- .NET SDK/Runtime
- Fable
If needed:
- Node.js
-
Create a test project
Terminal window dotnet new console -lang F# -n YourProjectNamecd YourProjectName -
Add the packages
Terminal window dotnet add package Scriptorium.Quilldotnet add package Scriptorium.Nib -
Write your first test
Program.js module YourProjectName.Mainopen Scriptorium.Nib.Assertionopen type Scriptorium.Quill.Testopen type Scriptorium.Quill.Runner[<EntryPoint>]let main _ =runTests [testList ("Calculator", [test ("add returns the sum", fun _ ->assertThat (1 + 1) (isEqualTo 2))test ("multiple assertions can be chained", fun _ ->assertThat 42 (isGreaterThan 0>> isLessThan 100>> isNotEqualTo 0))])] -
Finally run the tests
Terminal window # JavaScriptdotnet fable --runScript# .NETdotnet runYou should see output like this:

What’s next?
Section titled “What’s next?” Test DSL Async tests, focus mode, pending tests, and testSequenced in Scriptorium.Quill.
Assertion functions Learn how to write and compose assertions.
Snapshot testing Don't worry about writing assertions for complex objects. Just snap and compare.
DOM testing Playwright-powered DOM assertions and browser test helpers.