sinon automation testing framework index.

Test More In Less Time

Run Automation Testing In Parallel On The LambdaTest Cloud

Start for free

Description

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

Support and updates

  • sinon has 9045 stars, 804 forks.
  • It has 0 major releases in the past 6 months.
  • It has 0 commits and there are 5 open pull requests.
  • It has 40 open issues and 1256 have been closed.

Code statistics

  • sinon has 321 methods.

Blogs

Check out the latest blogs from LambdaTest on this topic:

Testing in Production: A Detailed Guide

When most firms employed a waterfall development model, it was widely joked about in the industry that Google kept its products in beta forever. Google has been a pioneer in making the case for in-production testing. Traditionally, before a build could go live, a tester was responsible for testing all scenarios, both defined and extempore, in a testing environment. However, this concept is evolving on multiple fronts today. For example, the tester is no longer testing alone. Developers, designers, build engineers, other stakeholders, and end users, both inside and outside the product team, are testing the product and providing feedback.

Difference Between Web And Mobile Application Testing

Smartphones have changed the way humans interact with technology. Be it travel, fitness, lifestyle, video games, or even services, it’s all just a few touches away (quite literally so). We only need to look at the growing throngs of smartphone or tablet users vs. desktop users to grasp this reality.

Best 13 Tools To Test JavaScript Code

Unit and functional testing are the prime ways of verifying the JavaScript code quality. However, a host of tools are available that can also check code before or during its execution in order to test its quality and adherence to coding standards. With each tool having its unique features and advantages contributing to its testing capabilities, you can use the tool that best suits your need for performing JavaScript testing.

The Art of Testing the Untestable

It’s strange to hear someone declare, “This can’t be tested.” In reply, I contend that everything can be tested. However, one must be pleased with the outcome of testing, which might include failure, financial loss, or personal injury. Could anything be tested when a claim is made with this understanding?

Fault-Based Testing and the Pesticide Paradox

In some sense, testing can be more difficult than coding, as validating the efficiency of the test cases (i.e., the ‘goodness’ of your tests) can be much harder than validating code correctness. In practice, the tests are just executed without any validation beyond the pass/fail verdict. On the contrary, the code is (hopefully) always validated by testing. By designing and executing the test cases the result is that some tests have passed, and some others have failed. Testers do not know much about how many bugs remain in the code, nor about their bug-revealing efficiency.

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

License

sinon is lincensed under the Other

LambdaTest Community Discussions

Test case code snippets

Shopify webpage testing - Test checkout process

Description:

By ensuring that the checkout process on a Shopify website is running effectively, including calculating the correct total cost of orders, ensuring that payment is completed successfully and that the customers order details are properly saved.

Accessibility testing - Avoid functionality triggered by motion

Description:

Avoid activating functionality through motion (e.g., shaking a phone). If motion triggers functionality, provide a way to disable the motion trigger and provide an alternative way to activate the functionality.

API Testing - Check payload limit

Description:

Verify that the API returns an error message if the request payload exceeds the allowed limit.

API Testing - Check retry attempts

Description:

Verify that the API correctly handles retry attempts and returns the correct HTTP status code.

Downloads

sinon can be downloaded from it’s GitHub repository - https://github.com/sinonjs/sinon

Method index

...

Automation Testing Cloud

Run Selenium, Cypress & Appium Tests Online on
3000+ Browsers.

Know More
Kane AI

Kane AI

World’s first end to end software testing agent.

Other similar frameworks

taiko

Taiko is a Node.js library with a clear and concise API to automate Chromium based browsers. Tests written in Taiko are highly readable and maintainable.

Jasmine-core

Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers or DOM thus suited anywhere that JavaScript can run.

argos

Tool for Visual testing by taking screenshots of every commit

redwood

RedwoodHQ is a free Open Source test automation framework that allows multiple users to develop automation code

ng-mocks

Framework helping test angular apps by mocking components, pipes, services etc

Frameworks to try

WinAppDriver

Windows Application Driver (WinAppDriver) is a service to support Selenium-like UI Test Automation on Windows Applications

Balin

Balin is a browser automation library for Kotlin. It's basically a Selenium-WebDriver wrapper inspired by Geb which uses power of the Selenium-WebDriver API.

Parallel_tests_ruby

ParallelTests splits tests into even groups (by number of lines or runtime) and runs each group in a single process with its own database.

DBTestCompareGenerator

Tool for generating database tests

Gherkin-ruby

Gherkin is a parser and compiler for the Gherkin language. Gherkin Ruby can be used either through its command line interface (CLI) or as a library.

Run sinon scripts on 3000+ browsers online

Perform automation testing with sinon on LambdaTest, the most powerful, fastest, and secure cloud-based platform to accelerate test execution speed.

Test Now