Description
Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.
Documentation & guides live here: http://jasmine.github.io
For a quick start guide of Jasmine 2.0, see the beginning of http://jasmine.github.io/2.0/introduction.html
Upgrading from Jasmine 1.x? Check out the 2.0 release notes for a list of what's new (including breaking interface changes). You can also read the upgrade guide.
jasmine alternatives and similar modules
Based on the "Testing" category.
Alternatively, view jasmine alternatives based on common mentions on social networks and blogs.
-
Playwright
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API. -
Mocha
โ๏ธ simple, flexible, fun javascript test framework for node.js & the browser -
Nightwatch
End-to-end testing framework written in Node.js and using the W3C Webdriver API -
volkswagen
:see_no_evil: Volkswagen detects when your tests are being run in a CI server, and makes them pass. -
WebdriverIO
Next-gen browser and mobile automation test framework for Node.js -
CasperJS
Navigation scripting and testing utility for PhantomJS and SlimerJS -
istanbul
Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale. -
fast-check
Property based testing framework for JavaScript (like QuickCheck) written in TypeScript -
toxy
Hackable HTTP proxy for resiliency testing and simulated network conditions -
power-assert
Power Assert in JavaScript. Provides descriptive assertion messages through standard assert interface. No API is the best API. -
uvu
uvu is an extremely fast and lightweight test runner for Node.js and the browser -
loadtest
Runs a load test on the selected URL. Easy to extend minimally for your own ends. -
testdouble.js (AKA td.js)
A minimal test double library for TDD with JavaScript -
testcontainers-node
Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container. -
abstruse
Abstruse is a free and open-source CI/CD platform that tests your models and code. -
Crusher
๐งโโ๏ธ Fast low-code testing framework โฑ๏ธ Create test in <60 secs -
Mochify
โ๏ธ TDD with Browserify, Mocha, Headless Chrome and WebDriver -
testen
:heavy_check_mark: Run tests for multiple versions of Node.js in local env.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of jasmine or a related project?
Popular Comparisons
README
A JavaScript Testing Framework
Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.
Upgrading from Jasmine 3.x? Check out the upgrade guide.
Contributing
Please read the contributors' guide.
Installation
There are several different ways to install Jasmine, depending on your environment and how you'd like to use it. See the Getting Started page for details.
Usage
See the documentation site, particularly the Your First Suite tutorial for information on writing specs, and the FAQ.
Supported environments
Jasmine tests itself across popular browsers (Safari, Chrome, Firefox, and Microsoft Edge) as well as Node.
Environment | Supported versions |
---|---|
Node | 12.17+, 14, 16, 18 |
Safari | 14-16 |
Chrome | Evergreen |
Firefox | Evergreen, 91, 102 |
Edge | Evergreen |
For evergreen browsers, each version of Jasmine is tested against the version of the browser that is available to us at the time of release. Other browsers, as well as older & newer versions of some supported browsers, are likely to work. However, Jasmine isn't tested against them and they aren't actively supported.
To find out what environments work with a particular Jasmine release, see the release notes.
Maintainers
Maintainers Emeritus
- Davis W. Frank
- Rajan Agaskar
- Greg Cobb
- Chris Amavisca
- Christian Williams
- Sheel Choksi
Copyright (c) 2008-2022 Jasmine Maintainers. This software is licensed under the MIT License.
*Note that all licence references and agreements mentioned in the jasmine README section above
are relevant to that project's source code only.