StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. DevOps
  3. Testing Frameworks
  4. Javascript Testing Framework
  5. Jasmine vs pytest

Jasmine vs pytest

OverviewDecisionsComparisonAlternatives

Overview

Jasmine
Jasmine
Stacks4.8K
Followers1.5K
Votes187
pytest
pytest
Stacks4.0K
Followers307
Votes0
GitHub Stars13.2K
Forks2.9K

Jasmine vs pytest: What are the differences?

  1. Feature Support: Jasmine is primarily focused on behavior-driven development (BDD) and primarily used for testing JavaScript code, while pytest is more versatile and can be used for testing Python code as well. This difference in primary focus reflects in the features each testing framework supports.
  2. Language Compatibility: Jasmine is mainly designed for JavaScript, whereas pytest is specifically for Python. This difference makes it easier for developers to choose between the two frameworks based on their language preferences and project requirements.
  3. Fixture Management: In pytest, fixture management is more flexible and versatile compared to Jasmine. Pytest allows developers to define fixtures at various scopes and reuse them efficiently throughout the test suite, providing greater control and customization options.
  4. Parameterized Testing: Pytest has built-in support for parameterized testing, allowing developers to run the same test with different inputs. This feature simplifies testing multiple scenarios and enhances test coverage, which is not as straightforward in Jasmine.
  5. Code Organization: Pytest follows a more modular approach to test organization, allowing developers to structure tests in a more intuitive and scalable manner. On the other hand, Jasmine tends to have a more rigid structure, which may not be as flexible for larger test suites or complex projects.
  6. Mocking Capabilities: Pytest provides more advanced mocking capabilities compared to Jasmine, enabling developers to create mock objects and simulate complex behaviors easily. This difference can be crucial for testing scenarios where external dependencies need to be mocked for isolated testing.

In Summary, Jasmine and pytest differ in terms of their feature support, language compatibility, fixture management, parameterized testing, code organization, and mocking capabilities, making them suitable for specific use cases based on developers' preferences and project requirements.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Advice on Jasmine, pytest

Abigail
Abigail

Dec 10, 2019

Decided

We use Mocha for our FDA verification testing. It's integrated into Meteor, our upstream web application framework. We like how battle tested it is, its' syntax, its' options of reporters, and countless other features. Most everybody can agree on mocha, and that gets us half-way through our FDA verification and validation (V&V) testing strategy.

231k views231k
Comments

Detailed Comparison

Jasmine
Jasmine
pytest
pytest

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.

A framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. It is a mature full-featured Python testing tool.

-
Auto-discovery; Modular fixtures
Statistics
GitHub Stars
-
GitHub Stars
13.2K
GitHub Forks
-
GitHub Forks
2.9K
Stacks
4.8K
Stacks
4.0K
Followers
1.5K
Followers
307
Votes
187
Votes
0
Pros & Cons
Pros
  • 64
    Can also be used for tdd
  • 49
    Open source
  • 19
    Originally from RSpec
  • 15
    Great community
  • 14
    No dependencies, not even DOM
Cons
  • 2
    Unfriendly error logs
No community feedback yet
Integrations
No integrations available
PyCharm
PyCharm

What are some alternatives to Jasmine, pytest?

Mocha

Mocha

Mocha is a feature-rich JavaScript test framework running on node.js and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.

Jest

Jest

Jest provides you with multiple layers on top of Jasmine.

Robot Framework

Robot Framework

It is a generic test automation framework for acceptance testing and acceptance test-driven development. It has easy-to-use tabular test data syntax and it utilizes the keyword-driven testing approach. Its testing capabilities can be extended by test libraries implemented either with Python or Java, and users can create new higher-level keywords from existing ones using the same syntax that is used for creating test cases.

Cypress

Cypress

Cypress is a front end automated testing application created for the modern web. Cypress is built on a new architecture and runs in the same run-loop as the application being tested. As a result Cypress provides better, faster, and more reliable testing for anything that runs in a browser. Cypress works on any front-end framework or website.

Karate DSL

Karate DSL

Combines API test-automation, mocks and performance-testing into a single, unified framework. The BDD syntax popularized by Cucumber is language-neutral, and easy for even non-programmers. Besides powerful JSON & XML assertions, you can run tests in parallel for speed - which is critical for HTTP API testing.

CodeceptJS

CodeceptJS

It is a modern end to end testing framework with a special BDD-style syntax. The test is written as a linear scenario of user's action on a site. Each test is described inside a Scenario function with I object passed into it.

Cucumber

Cucumber

Cucumber is a tool that supports Behaviour-Driven Development (BDD) - a software development process that aims to enhance software quality and reduce maintenance costs.

Protractor

Protractor

Protractor is an end-to-end test framework for Angular and AngularJS applications. Protractor runs tests against your application running in a real browser, interacting with it as a user would.

AVA

AVA

Even though JavaScript is single-threaded, IO in Node.js can happen in parallel due to its async nature. AVA takes advantage of this and runs your tests concurrently, which is especially beneficial for IO heavy tests. In addition, test files are run in parallel as separate processes, giving you even better performance and an isolated environment for each test file.

TestCafe

TestCafe

It is a pure node.js end-to-end solution for testing web apps. It takes care of all the stages: starting browsers, running tests, gathering test results and generating reports.

Related Comparisons

GitHub
Bitbucket

Bitbucket vs GitHub vs GitLab

GitHub
Bitbucket

AWS CodeCommit vs Bitbucket vs GitHub

Kubernetes
Rancher

Docker Swarm vs Kubernetes vs Rancher

gulp
Grunt

Grunt vs Webpack vs gulp

Graphite
Kibana

Grafana vs Graphite vs Kibana