power-assert - Power Assert in JavaScript

  •        29

Power Assert in JavaScript. Provides descriptive assertion messages through standard assert interface. No API is the best API.power-assert provides descriptive assertion messages for your tests, like this.

https://github.com/power-assert-js/power-assert

Dependencies:

define-properties : ^1.1.2
empower : ^1.2.3
power-assert-formatter : ^1.3.1
universal-deep-strict-equal : ^1.2.1
xtend : ^4.0.0

Tags
Implementation
License
Platform

   




Related Projects

Power Assert .NET

  •    

A .NET port of Groovy's Power Assert, which prints out a decomposition of your expression tree (with values) whenever an assertion fails

wrong - Wrong provides a general assert method that takes a predicate block

  •    Ruby

Wrong provides a simple, general assert method that takes a block, and understands the code inside it, providing verbose failure messages for free. The Wrong idea is to replace assert_equal and all those countless assert\_this, assert\_that, should\_something library methods which only exist to give a failure message that's not simply "assertion failed". Wrong replaces all of them in one fell swoop, since if you can write it in Ruby, Wrong can make a sensible failure message out of it.

js-must - An assertion library for JavaScript and Node

  •    Javascript

Must.js is a testing and assertion library for JavaScript and Node.js with a friendly BDD syntax (awesome.must.be.true()). It ships with many expressive matchers and is test runner and framework agnostic. Follows RFC 2119 with its use of MUST. Good and well testsed stuff. For those new to testing JavaScript on Node.js, you'll also need a test framework (also called a test-runner or a harness) to run your tests. One such tool is Mocha.

enzyme - JavaScript Testing utilities for React

  •    Javascript

Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output.Enzyme's API is meant to be intuitive and flexible by mimicking jQuery's API for DOM manipulation and traversal.

chai - BDD / TDD assertion framework for node

  •    Javascript

Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework. For more information or to download plugins, view the documentation.


chai-jquery - jQuery assertions for chai

  •    Javascript

chai-jquery is an extension to the chai assertion library that provides a set of jQuery-specific assertions. Note that jquery.js and chai.js can be inserted one before another (order does not matter here).

pytest - The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

  •    Python

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. Due to pytest's detailed assertion introspection, only plain assert statements are used. See getting-started for more examples.

assert - Assertions to validate method input/output with nice error messages.

  •    PHP

This library contains efficient assertions to test the input and output of your methods. With these assertions, you can greatly reduce the amount of coding needed to write a safe implementation. All assertions in the Assert class throw an \InvalidArgumentException if they fail.

should.js - BDD style assertions for node.js -- test framework agnostic

  •    Javascript

should is an expressive, readable, test framework agnostic, assertion library. Main goals of this library to be expressive and to be helpful. It keeps your test code clean, and your error messages helpful.It extends the Object.prototype with a single non-enumerable getter that allows you to express how that object should behave, also it returns itself when required with require.

JsTester

  •    Java

JsTester allows validation of javaScript code inside java. It provides a group of assert methods like JUnit's Assert, it also supports the validations in http://javascript.crockford.com, and the ability to use your own validations.

ModAssert

  •    C++

This is an advanced portable C++ library with 144 variations of the ASSERT macro, to add expressions, levels and optional actions. 112 are modular because they can also use Rich Booleans, allowing much more combinations than non-modular ASSERT macros.

theft - property-based testing for C: generate input to find obscure bugs, then reduce to minimal failing input

  •    C

theft is a C library for property-based testing. Where example-based testing checks test results for specific input, theft tests assert general properties ("for any possible input, [some condition] should hold"), generate input, and search for counter-examples that make the test fail. If theft finds any failures, it also knows how to generate and test simpler variants of the input, and then report the simplest counter-example found. theft is distributed under the ISC license.

jest-dom - :owl: Custom jest matchers to test the state of the DOM

  •    Javascript

You want to use jest to write tests that assert various things about the state of a DOM. As part of that goal, you want to avoid all the repetitive patterns that arise in doing so. Checking for an element's attributes, its text content, its css classes, you name it. The @testing-library/jest-dom library provides a set of custom jest matchers that you can use to extend jest. These will make your tests more declarative, clear to read and to maintain.

MVC Route/URL Generation Unit Tester

  •    

Provides convenient, easy to use methods that let you unit test the route table in your ASP.NET MVC application. Unlike many libraries, this lets you test routes both ways -- both incoming and going. You can specify an incoming request and assert that it matches a given route ...

node-tap - Test Anything Protocol tools for node

  •    Javascript

A TAP test framework for Node.js. It includes a command line test runner for consuming TAP-generating test scripts, and a JavaScript framework for writing such scripts.

ArchUnit - A Java architecture test library, to specify and assert architecture rules in plain Java

  •    Java

ArchUnit is a free, simple and extensible library for checking the architecture of your Java code. That is, ArchUnit can check dependencies between packages and classes, layers and slices, check for cyclic dependencies and more. It does so by analyzing given Java bytecode, importing all classes into a Java code structure. ArchUnit's main focus is to automatically test architecture and coding rules, using any plain Java unit testing framework. For further information, check out the user guide at http://archunit.org or test examples for the current release at ArchUnit Examples.

assert - Thin assertion library for use in libraries and business-model

  •    PHP

A simple php library which contains assertions and guard methods for input validation (not filtering!) in business-model, libraries and application low-level code. The library can be used to implement pre-/post-conditions on input data. Idea is to reduce the amount of code for implementing assertions in your model and also simplify the code paths to implement assertions. When assertions fail, an exception is thrown, removing the necessity for if-clauses in your code.

fast-xml-parser - Validate XML, Parse XML to JS/JSON and vise versa, or parse XML to Nimn rapidly without C/C++ based libraries and no callback

  •    Javascript

This project welcomes contributors. If you have a feature you'd like to see implemented or a bug you'd liked fixed, the best and fastest way to make that happen is to implement it and submit a PR. Basic knowledge of JS is sufficient. Feel free to ask for any guidance. To use it from CLI Install it globally with -g option.