Displaying 1 to 20 from 29 results

sinon - Test spies, stubs and mocks for JavaScript.

  •    Javascript

Standalone and test framework agnostic JavaScript test spies, stubs and mocks (pronounced "sigh-non", named after Sinon, the warrior).or via sinon's browser builds available for download on the homepage. There are also npm based CDNs one can use.

sinon-chai - Extends Chai with assertions for the Sinon.JS mocking framework.

  •    Javascript

Sinon–Chai provides a set of custom assertions for using the Sinon.JS spy, stub, and mocking framework with the Chai assertion library. You get all the benefits of Chai with all the powerful tools of Sinon.JS. All of your favorite Sinon.JS assertions made their way into Sinon–Chai. We show the should syntax here; the expect equivalent is also available.

NSubstitute - A friendly substitute for .NET mocking libraries.

  •    CSharp

Visit the NSubstitute website for more information. NSubstitute is designed as a friendly substitute for .NET mocking libraries.

node-sandboxed-module - A sandboxed node

  •    Javascript

A sandboxed node.js module loader that lets you inject dependencies into your modules.This module is intended to ease dependency injection for unit testing. However, feel free to use it for whatever crimes you can think of.

grunt-stubby - Grunt task to setup a stub/mock server based on JSON/YAML/JS configuration files

  •    Javascript

A Grunt plugin for setting up a Stubby mock server based on YAML/JSON/JS configuration files

import-modify - Modify the source of an imported module

  •    Javascript

Same as you would use in require().Function where you modify the source and return the new one.

retype - Re-apply type annotations from .pyi stubs to your codebase.

  •    Python

Re-apply type annotations from .pyi stubs to your codebase. When you run retype, it goes through all files you passed as SRC, finds the corresponding .pyi files in the types/ directory, and re-applies typing annotations from .pyi to the sources, using the Python 3 function and variable annotation syntax. The resulting combined sources are saved in typed-src/.

chai-spies - Spies for Chai Assertion Library.

  •    Javascript

This is an addon plugin for the chai assertion library. It provides the most basic function spy ability and tests. This library is primarily meant to serve as a starting point for anyone interested in developing chai plugins. If developing a module, you are welcome to use this as a starting point. I also encourage the use of the compile tools to allow modules to work both in node.js and the browser.

ide-stubs - Phalcon IDE Stubs

  •    PHP

This repo provide the most complete Phalcon Framework stubs which enables autocompletion in modern IDEs. Setup your IDE.

jest-static-stubs - Stubbing imported image assets

  •    Javascript

Stubbing imported assets (typically, in react components / ES6) so they work in JEST. Sometimes, you don't want to use harmony-reflect or cannot (node 4) or you need to test onload behaviour handlers. These stubs will return their content type's equivalent of blank.gif, not just an empty string.

gulp-stubby-server - A Gulp plugin for setting up a Stubby mock server based on YAML/JSON/JS configuration files

  •    Javascript

A Gulp plugin for setting up a Stubby mock server based on YAML/JSON/JS configuration files. Inspired by Grunt Stubby.

Prig - Prig is a lightweight framework for test indirections in .NET Framework.

  •    CSharp

Prig(PRototyping jIG) is a framework that generates a Test Double like Microsoft Fakes/Typemock Isolator/Telerik JustMock based on Unmanaged Profiler APIs. This framework enables that any methods are replaced with mocks. For example, a static property, a private method, a non-virtual member and so on. As of Mar 12, 2017, Released V2.3.2.

jack - Test-double framework for Node.js and browsers

  •    Javascript

Test-double framework for Node.js and the browser. For more information view the documentation.

doubler - Simple doubles for JS testing

  •    Javascript

Simple test doubles and stubs for NodeJS testing purposes, designed for usage when tools like Sinon offer more power than your project needs. Until I am able to write up proper docs, the best place to look is the test file, which shows the API nicely.

vhttp - Promise based Node.js HTTP/HTTPS client with optional virtualization.

  •    Javascript

Promise based HTTP/HTTPS client with optional virtualization. Depends on request-promise. This is helpful for services / apis that call other services / apis, but want to allow for virtualizing (stubbing) those calls in tests, CI/CD pipeline, or volume / performance testing. For more details on bluebird's Promise.all, check this out.

ninos - Simple stubbing/spying for AVA

  •    Javascript

This method setups the t.context.stub() and t.context.spy() functions. It hooks into AVA to automatically restore spies after each test. Call this method to create a function that you can use in place of any other function (as a callback/etc).

sqlalchemy-stubs - Mypy plugin and stubs for SQLAlchemy

  •    Python

The package is currently in pre-alpha stage. See issue tracker for bugs and missing features. If you want to contribute, a good place to start is help-wanted label. The 0.1 version will be released after we will fix issues #2, #5, and #7. The long term goal is to be able to infer types for more complex situations like correctly inferring columns in most compound queries.

We have large collection of open source products. Follow the tags from Tag Cloud >>

Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.