Skip to content

Fs.TestContainers is a wrapper around the fluent builders found in testcontainers-dotnet

License

Notifications You must be signed in to change notification settings

1eyewonder/Fs.TestContainers

Repository files navigation

Fs.TestContainers (in development)

Fs.TestContainers is a wrapper around the fluent builders found in testcontainers-dotnet. It allows us to create images, containers, etc. using the F# computation expression syntax.

Builds

GitHub Actions
GitHub Actions
Build History

NuGet

Package Stable Prerelease
Fs.TestContainers NuGet Badge NuGet Badge

Examples

Images

C# equivalent found here

open DotNet.Testcontainers.Builders
open Image
open System

let imageName =
    image {
        name (Guid.NewGuid().ToString("D"))
        directory' (CommonDirectoryPath.GetSolutionDirectory()) "src"
        dockerfile "Dockerfile"
    } |> Image.build

Containers

C# equivalent found here

open Container

let container =
    container {
        entrypoint "nginx"
        commands [|"-t"|]
    } |> Container.build

About

Fs.TestContainers is a wrapper around the fluent builders found in testcontainers-dotnet

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published