Assertions

Top 23 Assertion Open-Source Projects

  • Testify

    A toolkit with common assertions and mocks that plays nicely with the standard library

  • Project mention: What 3rd-party libraries do you use often/all the time? | /r/golang | 2023-12-01

    github.com/stretchr/testify

  • Enzyme

    JavaScript Testing utilities for React

  • Project mention: The best testing strategies for frontends | dev.to | 2024-04-22

    Probably Enzyme was the first to popularize component testing in React by doing shallow rendering and expecting some things to be there in the React component tree. Then React Testing library came and took component testing to a whole new level.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • supertest

    🕷 Super-agent driven library for testing node.js HTTP servers using a fluent API. Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.

  • chai

    BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.

  • Project mention: Почему я программирую на Ruby | dev.to | 2023-10-20
  • Karate

    Test Automation Made Simple

  • Kotest

    Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing

  • Project mention: AocKt: Test-driven Advent of Code in Kotlin | /r/Kotlin | 2023-11-29

    As you might know, Advent of Code will begin this Friday! If, like me, you want to have a go at solving the puzzles in Kotlin, I would like to share with you a little library I've developed to reduce boilerplate and solve the puzzles in a test-driven approach. It is based on Kotest, a modern and Kotlin-first test framework.

  • Fluent Assertions

    A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • AutoFixture

    AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.

  • Project mention: API: Go, .NET, Rust | /r/dotnet | 2023-12-09

    Yes, it does feel like some of the "standard stuff" in other more nuanced languages are missing (especially miss AutoFixture ngl). Some of those are a conscious decison by the golang team for example.

  • Pester

    Pester is the ubiquitous test and mock framework for PowerShell.

  • Project mention: PyPyInstaller Powershell Module Initial Code Push | dev.to | 2023-09-25

    Pester is what's used for most Powershell testing. While it has some pretty amazing features, it does have issues with .NET class method mocking and sometimes scope can be weird. Here's a simple example:

  • pandera

    A light-weight, flexible, and expressive statistical data testing library

  • AssertJ

    AssertJ is a library providing easy to use rich typed assertions

  • httpexpect

    End-to-end HTTP and REST API testing for Go.

  • Project mention: FLaNK Stack Weekly for 07August2023 | dev.to | 2023-08-07
  • jest-extended

    Additional Jest matchers 🃏💪

  • Project mention: How To Use expect.objectContaining With Null and Undefined | dev.to | 2023-05-15

    I recently came across a workaround for this issue by using the expect.toBeOneOf() matcher from the jest-extended library. This matcher allows you to check whether a value matches one of the expected values, including null and undefined.

  • gock

    HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽

  • @sindresorhus/is

    Type check values (by sindresorhus)

  • zerocode

    A community-developed, free, opensource, automated testing framework for microservices APIs, Kafka(Data Streams) and Load testing. Zerocode Open Source enables you to create, change and maintain your automated test scenarios via simple JSON or YAML files. Visit documentation below:

  • bash_unit

    bash unit testing enterprise edition framework for professionals

  • kotlin-power-assert

    Kotlin compiler plugin to enable diagrammed function calls in the Kotlin programming language

  • luaunit

    LuaUnit is a popular unit-testing framework for Lua, with an interface typical of xUnit libraries (Python unittest, Junit, NUnit, ...). It supports several output formats (Text, TAP, JUnit, ...) to be used directly or work with Continuous Integration platforms (Jenkins, Maven, ...).

  • atrium

    A multiplatform expectation library for Kotlin

  • strikt

    An assertion library for Kotlin

  • quicktest

    Quick helpers for testing Go applications (by frankban)

  • gotest.tools

    A collection of packages to augment the go testing package and support common patterns.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Assertions related posts

  • Show HN: Unlogged (YC S22) – open-source record and replay for Java

    2 projects | news.ycombinator.com | 30 Oct 2023
  • PyPyInstaller Powershell Module Initial Code Push

    2 projects | dev.to | 25 Sep 2023
  • Testing calls to Daily's REST API in Go

    2 projects | dev.to | 8 Sep 2023
  • Java 21: What’s New?

    1 project | news.ycombinator.com | 9 Aug 2023
  • Do you wrap testing libraries?

    1 project | /r/golang | 16 May 2023
  • How To Use expect.objectContaining With Null and Undefined

    1 project | dev.to | 15 May 2023
  • [Go] How to unit test for exception handling?

    1 project | /r/learnprogramming | 19 Apr 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 2 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Assertion projects? This list will help you:

Project Stars
1 Testify 22,073
2 Enzyme 19,961
3 supertest 13,553
4 chai 8,065
5 Karate 7,852
6 Kotest 4,289
7 Fluent Assertions 3,599
8 AutoFixture 3,226
9 Pester 3,015
10 pandera 3,007
11 AssertJ 2,541
12 httpexpect 2,469
13 jest-extended 2,293
14 gock 2,028
15 @sindresorhus/is 1,629
16 zerocode 848
17 bash_unit 577
18 kotlin-power-assert 552
19 luaunit 548
20 atrium 537
21 strikt 528
22 quicktest 518
23 gotest.tools 491

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com