sinonjs/sinon


Test spies, stubs and mocks for JavaScript.

https://sinonjs.org/

License: Other

Language: JavaScript

Keywords: javascript, sinon, stub, stubs, tdd, test-driven-development, test-spies, unit-testing


Sinon.JS
Sinon.JS

Standalone and test framework agnostic JavaScript test spies, stubs and mocks (pronounced "sigh-non", named after Sinon, the warrior).

npm version Join the chat at https://gitter.im/sinonjs/sinon Build status Sauce Test Status Coverage Status OpenCollective OpenCollective npm downloads per month CDNJS version

Sauce Test Status

Installation

via npm

$ npm install sinon

or via sinon's browser builds available for download on the homepage. There are also npm based CDNs one can use.

Usage

See the sinon project homepage for documentation on usage.

If you have questions that are not covered by the documentation, you can check out the sinon tag on Stack Overflow or drop by #sinon.js on irc.freenode.net:6667.

You can also search through the Sinon.JS mailing list archives.

Goals

  • No global pollution
  • Easy to use
  • Require minimal “integration”
  • Easy to embed seamlessly with any testing framework
  • Easily fake any interface
  • Ship with ready-to-use fakes for XMLHttpRequest, timers and more

Contribute?

See CONTRIBUTING.md for details on how you can contribute to Sinon.JS

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on GitHub with a link to your site. [Become a sponsor]

Licence

Sinon.js was released under BSD-3

Project Statistics

Sourcerank 24
Repository Size 26.1 MB
Stars 7,063
Forks 694
Watchers 100
Open issues 31
Dependencies 687
Contributors 299
Tags 158
Created
Last updated
Last pushed

Top Contributors See all

Morgan Roderick Christian Johansen Carl-Erik Kopseng Maximilian Antoni Phred John Reeves Lucas Fernandes da Costa Ben Hockey Tim Fischbach Tim Perry Håvard Wormdal Høiby Marc Redemske ig-pj Tim Ruffles Jonathan Sokolowski Domenic Denicola Andreas Lind MrBigDog2U Felix Geisendörfer Mikhail Gusarov

Packages Referencing this Repo

sinon
JavaScript test spies, stubs and mocks.
Latest release 7.3.2 - Updated - 7.06K stars
spm-sinon
JavaScript test spies, stubs and mocks.
Latest release 1.6.0 - Published - 7.06K stars
org.webjars.bower:sinon
WebJar for sinon
Latest release 2.0.0 - Updated - 7.06K stars
sinon
Test spies, stubs and mocks for JavaScript.
Latest release v7.3.2 - Published - 7.06K stars
sinon
JavaScript test spies, stubs and mocks.
Latest release 1.5.0 - Published - 7.06K stars
ibash-sinon
JavaScript test spies, stubs and mocks.
Latest release 2.0.0-pre - Published - 7.06K stars
@hola.org/sinon
JavaScript test spies, stubs and mocks.
Latest release 1.17.7-hola.4 - Updated - 7.06K stars

Recent Tags See all

v7.3.2 April 17, 2019
v7.3.1 March 27, 2019
v7.2.7 March 04, 2019
v7.2.6 March 01, 2019
v7.2.5 February 27, 2019
v7.2.4 February 18, 2019
v7.2.3 January 19, 2019
v7.2.2 December 12, 2018
v7.2.1 December 12, 2018
v7.2.0 December 10, 2018
v7.1.1 October 31, 2018
v7.1.0 October 25, 2018
v7.0.0 October 14, 2018
v6.3.5 October 03, 2018
v6.3.4 September 18, 2018

Interesting Forks See all

uberVU/Sinon.JS
Test spies, stubs and mocks for JavaScript.
JavaScript - BSD-3-Clause - Last pushed - 4 stars - 10 forks
ingameio/SinonES6.JS
Test spies, stubs and mocks for JavaScript ES6.
JavaScript - BSD-3-Clause - Last pushed - 2 stars - 1 forks
bevacqua/Sinon.JS
Test spies, stubs and mocks for JavaScript.
JavaScript - BSD-3-Clause - Last pushed - 2 stars - 4 forks
kriskowal/Sinon.JS
Test spies, stubs and mocks for JavaScript.
JavaScript - BSD-3-Clause - Last pushed - 2 stars
mroderick/sinon
Test spies, stubs and mocks for JavaScript.
JavaScript - BSD-3-Clause - Last pushed - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2019-04-17 16:13:37 UTC

Login to resync this repository