Comparison

Jasmine vs PHPUnit

On the evidence we track, Jasmine leads this comparison with a composite score of 69/100. Scores are only directly comparable because these tools share a category; the full breakdown and every source is below.

Machine formatsJSONMarkdownGraphQLor send Accept: application/json
Jasmine69
PHPUnit62
Score
Vioscale score
Jasmine69 / 100medium · 71%updating
PHPUnit62 / 100low · 33%updating
Pricing
Free tier
Jasmine
PHPUnit
Model
Price level
Jasminefree
PHPUnitfree
Transparent
Jasmine
PHPUnit
Adoption
Dependent repos
Jasmine846,026
PHPUnit777,462
Github stars
Jasmine15,823
PHPUnit20,045
Package downloads weekly
Jasmine1,359,504
PHPUnit
Activity
Commits last 30d
Jasmine13
PHPUnit100
Release
Cadence days
Jasmine13
PHPUnit
History
Jasmine20 items
PHPUnit20 items
License
Spdx
JasmineMIT
Language
Primary
JasmineJavaScript
PHPUnitPHP
Market
Availability

Capabilities

Feature-by-feature on the axes that matter for testing tools. “-” means undocumented, not absent.

Core
Test types
Jasmine-
PHPUnitUnit
Browser automation
Jasmine
PHPUnit-
Built-in assertion library
Jasmine
PHPUnit-
Languages
JasmineJavaScript, TypeScript
PHPUnitPHP
Isolation
Mocking / stubbing
Jasmine
PHPUnit-
Techniques
Snapshot testing
Jasmine-
PHPUnit-
Performance
Parallel execution
Jasmine
PHPUnit-
Insight
Code coverage
Jasmine-
PHPUnit
DX
Watch mode
Jasmine-
PHPUnit-
Ops
CI integration
Jasmine-
PHPUnit-

What each one is

The product in its own terms, so the numbers below have context.

Jasmine

Leader

A testing framework for writing and running JavaScript tests in browsers and Node.js environments. Features a straightforward syntax and does not modify how code loads or executes.

Independently observed

PHPUnit

PHPUnit helps developers verify their PHP code through automated unit testing. It provides a framework for writing, organizing, and running tests.

Independently observed

Pricing

List pricing as published by each vendor, with the date we read it. Always verify at the source before you buy.

Jasmine

Leader
Open sourceFree tier

Free and open source

as of verify ↗

PHPUnit

Open source
as of verify ↗

Platform & deployment

Where each product runs and how it can be hosted. A dash means undocumented, not unsupported.

Platforms
Web
Jasmine
PHPUnit
CLI
Jasmine
PHPUnit
Deployment
Self-hosted
Jasmine
PHPUnit

Comparison generated from independently-sourced facts. Every value links to its source and retrieval date. See the method.

Jasmine vs PHPUnit: an evidence-based comparison · Vioscale