Skip to main content

external@serenity-js/jasmine

NPM Version Build Status Maintainability Code Coverage Contributors Known Vulnerabilities GitHub stars

Follow Serenity/JS on LinkedIn Watch Serenity/JS on YouTube Join Serenity/JS Community Chat Support Serenity/JS on GitHub

@serenity-js/jasmine brings full Serenity reporting capabilities to Jasmine and enables writing tests using the Screenplay Pattern.

Features

Installation

npm install --save-dev @serenity-js/core @serenity-js/console-reporter @serenity-js/jasmine

See the Serenity/JS Installation Guide.

Quick Start

import 'jasmine';
import { actorCalled } from '@serenity-js/core';

describe('Example Test', () => {
it('supports actors', async () => {
await actorCalled('Alice').attemptsTo(
// Add tasks and interactions here
)
})
})

Explore practical examples and in-depth explanations in the Serenity/JS Handbook.

Reporting

Command line usage

jasmine --reporter=@serenity-js/jasmine

Programmatic usage

import serenityReporterForJasmine = require('@serenity-js/jasmine')

jasmine.getEnv().addReporter(serenityReporterForJasmine({ specDirectory: 'tests' }))

Documentation

Contributing

Contributions of all kinds are welcome! Get started with the Contributing Guide.

Community

If you enjoy using Serenity/JS, make sure to star ⭐️ Serenity/JS on GitHub to help others discover the framework!

License

The Serenity/JS code base is licensed under the Apache-2.0 license, while its documentation and the Serenity/JS Handbook are licensed under the Creative Commons BY-NC-SA 4.0 International.

See the Serenity/JS License.

Support

Support ongoing development through GitHub Sponsors. Sponsors gain access to Serenity/JS Playbooks and priority help in the Discussions Forum.

For corporate sponsorship or commercial support, please contact Jan Molak.

GitHub Sponsors.

Index

Functions