serenity-js

A next generation, full-stack acceptance testing framework optimised for collaboration, speed and scale!

APACHE-2.0 License

Downloads
412.4K
Stars
535
Committers
57

Bot releases are hidden (Show)

serenity-js - v2.19.0

Published by jan-molak almost 4 years ago

2.19.0 (2020-11-25)

Features

  • protractor: EXPERIMENTAL: Custom extensions can be mixed into BrowseTheWeb (3b26baa)
serenity-js - v2.18.2

Published by jan-molak almost 4 years ago

2.18.2 (2020-11-22)

Bug Fixes

  • core: better support for abilities that are discarded asynchronously (fb130b6)
serenity-js - v2.18.1

Published by jan-molak almost 4 years ago

2.18.1 (2020-11-21)

Note: Version bump only for package serenity-js-monorepo

serenity-js - v2.18.0

Published by jan-molak almost 4 years ago

2.18.0 (2020-11-17)

Features

  • core: Cross-scenario Actors + improved Ability lifecycle management (version bump) (5f30cc2)
serenity-js - v2.17.16

Published by jan-molak almost 4 years ago

2.17.16 (2020-11-17)

Note: Version bump only for package serenity-js-monorepo

serenity-js - v2.17.15

Published by jan-molak almost 4 years ago

2.17.15 (2020-11-14)

Note: Version bump only for package serenity-js-monorepo

serenity-js - v2.17.14

Published by jan-molak almost 4 years ago

2.17.14 (2020-11-14)

Note: Version bump only for package serenity-js-monorepo

serenity-js - v2.17.13

Published by jan-molak almost 4 years ago

2.17.13 (2020-11-14)

Note: Version bump only for package serenity-js-monorepo

serenity-js - v2.17.12

Published by jan-molak almost 4 years ago

2.17.12 (2020-11-14)

Bug Fixes

  • deps: updated dependencies (0b5abc7)
serenity-js - v2.17.11

Published by jan-molak almost 4 years ago

2.17.11 (2020-11-14)

Note: Version bump only for package serenity-js-monorepo

serenity-js - v2.17.10

Published by jan-molak almost 4 years ago

2.17.10 (2020-11-06)

Note: Version bump only for package serenity-js-monorepo

serenity-js - v2.17.9

Published by jan-molak almost 4 years ago

2.17.9 (2020-11-06)

Note: Version bump only for package serenity-js-monorepo

serenity-js - v2.17.7

Published by jan-molak almost 4 years ago

2.17.7 (2020-11-06)

Note: Version bump only for package serenity-js-monorepo

serenity-js - v1.2.1

Published by jan-molak over 7 years ago

1.2.1 (2017-02-26)

Bug Fixes

  • serenity-protractor: Custom configuration correctly overrides the defaults (031a8ddc)
serenity-js - v1.2.0

Published by jan-molak over 7 years ago

1.2.0 (2017-02-19)

Bug Fixes

  • core: More meaningful reporting on TakeNotes and CompareNotes (9aeefc57)

Features

  • serenity-protractor: Interactions: Execute.asyncScript(), Execute.script() and Evaluate.script() (0a4b08e2)
serenity-js - v1.1.0

Published by jan-molak over 7 years ago

<a name"1.1.0">

1.1.0 (2017-02-11)

Features

  • serenity-protractor: Support for Protractor 5.1.x (a6d9eab3)
serenity-js - v1.0.0

Published by jan-molak over 7 years ago

1.0.0 (2017-02-10)

Bug Fixes

  • core:
    • JSONReporter superseded by SerenityBDDReporter (0b93ff0d)
    • JSONObject interface definition should not reference the static JSON class (ed4fabb6)
  • deps: Pegged Protractor to 5.0.x until backwards compatibility issues intrduced in 5.1 (8c799972)
  • interactions: See is no longer reported by default, as that polluted the report and triggere (3b7efb81)
  • serenity-cucumber: The tags parameter in cucumberOpts is now correctly typed as a list of strin (abdeddad)
  • serenity-mocha: Pending scenarios with no steps are correctly marked as pending instead of passi (a593a84d)

Features

  • integration: Stand-ins enable taking screenshots when there are no Actors on the Stage. (786b3373)
  • screenplay: The actor can now TakeNotes to assert on their contents later. (ab368276, closes #24)
  • serenity: SerenityProtractorFramework takes care of executing cucumber and mocha tests. (6cf0197a)
  • serenity-mocha:
    • A compiler can be registered as a configuration parameter (02a0c6eb)
    • Tests that timed out or failed with an exception are recognised as "Compromised" (532fb86e)
  • serenity-protractor:
    • Serenity can auto-detect the appropriate test dialect (c50a4bf7)
    • SerenityProtractorFramework advises how to install a missing test runner. (b6caf893)

Breaking Changes

  • JSONReporter is now superseded by a cleaner and more focused implementation -

SerenityBDDReporter, which better handles gathering results from tests executed in parallel.

(0b93ff0d)

  • SerenityProtractorPlugin is now removed in favour of the much more flexible SerenityProtractorFramework.

You can use the SerenityProtractorFramework instead of the mocha or the protractor-cucumber-framework modules
as it provides capabilities equivalent to those modules, and also enables an easy integration with Serenity/JS
as well as synchronisation with the WebDriver ControlFlow so that the test reports will show accurate timing.

To enable the framework, add the following configuration to your protractor.conf.js file:

exports.config = {
    framework: 'custom',

    frameworkPath: require.resolve('serenity-js'),
    serenity: {
        dialect: 'cucumber'     // or 'mocha'
    },

    specs: [ 'features/**/*.feature' ],

    cucumberOpts: {             // or 'mochaOpts'
    },

Both cucumberOpts and mochaOpts don't need to change as SerenityProtractorFramework can act as a drop-in replacement.

Please see the todomvc-protractor-cucumber and todomvc-protractor-mocha example project for details.

BREAKING CHANGE: The serenity object should be used instead of the Serenity singleton to initialise
the stage and the actors.

Instead of:

import { Serenity } from 'serenity-js';

const stage = Serenity.callToStageFor(cast);

use:

import { serenity } from 'serenity-js';

const stage = serenity.callToStageFor(cast);

Tutorials and more documentation to follow shortly!

(6cf0197a)

serenity-js - v0.10.5

Published by jan-molak over 7 years ago

<a name"0.10.5">

0.10.5 (2017-01-26)

Bug Fixes

  • npm: Cucumber-related types are exported using the ES5 syntax now (dca8be0a)
serenity-js - v0.10.4

Published by jan-molak over 7 years ago

<a name"0.10.4">

0.10.4 (2017-01-26)

Bug Fixes

  • npm: Serenity/JS compiles to ES5 instead of ES6 to fix issues with the module loader (5a4c1d4d)
  • serenity-cucumber: Cucumber generator steps are correctly recognised and synced (4475c2cc)
serenity-js - v0.10.3

Published by jan-molak over 7 years ago

<a name"0.10.3">

0.10.3 (2017-01-22)

Bug Fixes

  • deps: Updated shrinkwrap to include co, required by serenity-cucumber (fefd26b3)