All Projects → princed → karma-expect

princed / karma-expect

Licence: MIT license
Expect.js adapter for Karma test runner

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to karma-expect

jasmine-custom-message
custom failure message on any jasmine v1.3 assertion
Stars: ✭ 15 (+25%)
Mutual labels:  assertions
fluentcheck
Fluent assertions for Python
Stars: ✭ 79 (+558.33%)
Mutual labels:  assertions
rust-claim
Assertion macros toolkit for Rust
Stars: ✭ 53 (+341.67%)
Mutual labels:  assertions
vue-webpack-boilerplate
A webpack boilerplate with vue-loader, axios, vue-router and vuex
Stars: ✭ 51 (+325%)
Mutual labels:  karma
testing-angular-applications
Project for the Testing Angular Applications book
Stars: ✭ 99 (+725%)
Mutual labels:  karma
concise
✅ Concise is test framework for using plain English and minimal code, built on PHPUnit.
Stars: ✭ 47 (+291.67%)
Mutual labels:  assertions
karma-riot
A Karma plugin. Compile and test HTML and JS in Riot tag files.
Stars: ✭ 20 (+66.67%)
Mutual labels:  karma
codeceptjs-bdd
Javascript BDD UI Automation Framework. Exclusive LWC Shadow DOM Support. Playwright, Webdriver.io, Appium, Saucelabs.
Stars: ✭ 35 (+191.67%)
Mutual labels:  assertions
Assertion
The power of Respect\Validation into an assertion library.
Stars: ✭ 23 (+91.67%)
Mutual labels:  assertions
angular-cli-skeleton
angular-cli skeleton to quickly start a new project with advanced features and best practices. All features are described in README.md.
Stars: ✭ 32 (+166.67%)
Mutual labels:  karma
angular-admin-panel
An Angular Admin boilerplate to quickly scaffold any large scale enterprise application.
Stars: ✭ 18 (+50%)
Mutual labels:  karma
karate
Test Automation Made Simple
Stars: ✭ 6,384 (+53100%)
Mutual labels:  assertions
crystal-clear
Design by Contract for Crystal
Stars: ✭ 45 (+275%)
Mutual labels:  assertions
sexpect
Expect for Shells
Stars: ✭ 99 (+725%)
Mutual labels:  expect
phpsemver
Check if your changes are a major change, minor change or just a patch.
Stars: ✭ 28 (+133.33%)
Mutual labels:  assertions
apid
User focused API testing
Stars: ✭ 90 (+650%)
Mutual labels:  assertions
playwright-jest-examples
Demonstrates the usage of Playwright (cross-browser automation library in Node.js) in combination with Jest on GitHub Actions to test various setups.
Stars: ✭ 79 (+558.33%)
Mutual labels:  expect
cxx-tap
Test Anything Protocol (TAP) Producer for C++
Stars: ✭ 22 (+83.33%)
Mutual labels:  assertions
karma-reporter
A plugin for running clojurescript tests with Karma.
Stars: ✭ 23 (+91.67%)
Mutual labels:  karma
asserts
The most over-engineered and overpowered C++ assertion library.
Stars: ✭ 217 (+1708.33%)
Mutual labels:  assertions

karma-expect

Dependency Status Greenkeeper badge NPM version NPM downloads Travis CI

Motivation

You should use it only if you want run tests in IE8 and lower, otherwise consider karma-chai-plugins, which provides more complete Chai assertions as well as additional plugins.

Installation

Install the module from npm:

$ npm install karma-expect --save-dev

Add expect to the frameworks key in your Karma configuration:

module.exports = function(karma) {
  karma.set({

    // frameworks to use
    frameworks: ['mocha', 'expect']

    // ...
  });
};

Usage

Expect.js assertions are available in the tests:

describe('karma tests with expect', function() {
  it('should expose expect method', function() {
    expect('foo').to.not.equal('bar');
  });
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].