Hspec vs Jasmine
Hspec
hspec.github.ioJasmine
jasmine.github.ioSide by side
| Figure | Hspec | Jasmine |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | — | Yes |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Unit Testing | 8.0 (#9) | 7.9 (#11) |
| Spec score · Unit Testing Frameworks | 8.1 (#10) | 7.9 (#14) |
| Integrations | Hspec integrates with QuickCheck, SmallCheck, and HUnit. | The browser runner can use Sauce Labs or a user's own Selenium Grid as a remote browser grid. |
| License | The GitHub repository identifies the project license as MIT. | The Jasmine project repository states that the software is licensed under the MIT License. |
| Purpose | Hspec is a testing framework for Haskell. | Jasmine is a framework for testing JavaScript code that runs in browsers and Node.js. |
Plans
In their own words
Jasmine
Jasmine is a free, open-source framework for testing JavaScript code in browsers and Node.js. Tests use JavaScript’s describe/it structure and expect matchers. The jasmine-core package has no external dependencies, and the framework does not rely on other JavaScript frameworks. For Node, developers can install the package locally with npm and run it using npx jasmine; the standalone distribution runs browser specs without other tools or a web server. Jasmine supports ES modules, and its Node setup can also load CommonJS modules. The jasmine-browser-runner supports interactive browser runs and CI execution with headless Chrome or Sauce Labs. It can also connect to Sauce Labs or a user’s own Selenium Grid as a remote browser grid. Runners can be configured, reporters and matchers customized, and spec order randomized. The project lists JavaScript and TypeScript support, parallel execution and built-in mocks. Browser and Node compatibility follows a rolling window, so older platforms may receive best-effort support or be dropped in minor releases. The FAQ notes that the unmaintained karma-jasmine adapter depends on jasmine-core 4.x, which can limit access to newer Jasmine features. The project uses the MIT License and directs users to GitHub for issues and contributions.