Skip to content

Releases: dnotes/quickpickle

[email protected]

09 Nov 19:52
e1f30f6
Compare
Choose a tag to compare

Patch Changes

  • 2bb4509: Fixed several errors in rendering, including:

    • `Backticks` and ${variables} were not escaped properly in Scenario Outlines
    • Backslashes were not escaped properly in other strings

@quickpickle/[email protected]

09 Nov 19:52
e1f30f6
Compare
Choose a tag to compare

Patch Changes

[email protected]

08 Nov 14:26
8dd8029
Compare
Choose a tag to compare

Patch Changes

  • db82746: Fixed problems with Scenario Outline rendering; under the following conditions,
    and probably some others, the renderer would fail.

    • If a parameter were named "context"
    • Any regex characters (e.g. *) in a parameter name
    • Having a ton of examples
    • If a parameter name started with a number

@quickpickle/[email protected]

08 Nov 14:26
8dd8029
Compare
Choose a tag to compare

Patch Changes

[email protected]

30 Oct 13:57
5105448
Compare
Choose a tag to compare

Minor Changes

  • 974e09d: ## Configuration of the world variable

    QuickPickle now handles setting up the WorldConfig for any world builder
    that extends the QuickPickleWorld class. That worldConfig is now accessable
    in world.info.config.worldConfig, and in the read-only getter world.worldConfig.

    The @quickpickle/playwright plugin has been updated to use the new API.

    Any world builder classes using the old API will continue to function as before
    for the time being.

    New API available for "soft" failure

    Occasionally you may want to allow a scenario to continue running even after
    a step has failed. Some use cases might be:

    • to check the nature of the error thrown in a previous step
    • to see all the errors from a longer list of steps
    • to take a screenshot if there are any errors

    There is now an API for this purpose: Scenarios can be tagged for "soft" failure.
    The default tags are "@Soft" or "@softfail", which can be configured at "softFailTags".
    Scenarios tagged for soft failure will continue to run until the end of the Scenario,
    and the Before and After hooks will be run as well. Any errors will be collected in
    world.info.errors. If there are errors after the last step and After hooks have run,
    then the Scenario will fail.

    Note that this is analogous but slightly different from soft assertions in other
    test frameworks like Vitest and Playwright, in that if you don't clear out the
    accumulated errors, the Scenario will still fail at the end.

@quickpickle/[email protected]

30 Oct 13:57
5105448
Compare
Choose a tag to compare

Minor Changes

  • 974e09d: ## Configuration of the world variable

    QuickPickle now handles setting up the WorldConfig for any world builder
    that extends the QuickPickleWorld class. That worldConfig is now accessable
    in world.info.config.worldConfig, and in the read-only getter world.worldConfig.

    The @quickpickle/playwright plugin has been updated to use the new API.

    Any world builder classes using the old API will continue to function as before
    for the time being.

    New API available for "soft" failure

    Occasionally you may want to allow a scenario to continue running even after
    a step has failed. Some use cases might be:

    • to check the nature of the error thrown in a previous step
    • to see all the errors from a longer list of steps
    • to take a screenshot if there are any errors

    There is now an API for this purpose: Scenarios can be tagged for "soft" failure.
    The default tags are "@Soft" or "@softfail", which can be configured at "softFailTags".
    Scenarios tagged for soft failure will continue to run until the end of the Scenario,
    and the Before and After hooks will be run as well. Any errors will be collected in
    world.info.errors. If there are errors after the last step and After hooks have run,
    then the Scenario will fail.

    Note that this is analogous but slightly different from soft assertions in other
    test frameworks like Vitest and Playwright, in that if you don't clear out the
    accumulated errors, the Scenario will still fail at the end.

Patch Changes

  • 7f50c7d: added screenshots for elements, and fixed save location for visual regression tests
  • 7fc2026: provide better error messages for metatag tests
  • Updated dependencies [974e09d]

[email protected]

27 Oct 05:13
888bd00
Compare
Choose a tag to compare

Minor Changes

  • 4e4a90f: feat: add tags to test names for Vitest readouts

@quickpickle/[email protected]

27 Oct 05:13
888bd00
Compare
Choose a tag to compare

Patch Changes

[email protected]

21 Oct 23:50
42f425c
Compare
Choose a tag to compare

Minor Changes

  • f350d15: - changed tagsMatch API for QuickPickleWorldInterface -- it now returns string[] or null,
    which makes it easier for other plugins to get matching tags from a list.

    • added browser sizes to PlaywrightWorld; they can be chosen with tags or set via a Gherkin step.
  • 94902af: feat: several additions to QuickPickleWorldInterface, fix explodeTags, refactor

    feat: add QuickPickleWorld.toString() function that renders to a single descriptive line
    feat: add QuickPickleWorld.info.stepIdx, to get the line number of the step within the scenario
    feat: add QuickPickleWorld.info.explodedIdx, to get the index number for exploded tags
    chore: renamed "qp" function to "gherkinStep", for better readability in traces
    fix: fixed the explodeTags functionality when rendering
    test: added tons of tests for the explodeTags functionality

@quickpickle/[email protected]

21 Oct 23:50
42f425c
Compare
Choose a tag to compare

Patch Changes

  • f1167dc: fixed outcomes step definitions and tests for static HTML page

  • f350d15: - changed tagsMatch API for QuickPickleWorldInterface -- it now returns string[] or null,
    which makes it easier for other plugins to get matching tags from a list.

    • added browser sizes to PlaywrightWorld; they can be chosen with tags or set via a Gherkin step.
  • 07920cd: fixed all action step definitions, with tests

  • c85e2c0: Fixed file paths for default screenshots

  • Updated dependencies [f350d15]

  • Updated dependencies [94902af]