Skip to content

Framework handles skipped activities differently than Fabric environment #162

@RowinVeneman

Description

@RowinVeneman

The framework handles skipped activities differently than the actual Fabric environment. In Fabric, attempting to access the status of a skipped activity (activity('Notebook').status) causes the expression to break. However, the testing framework returns None. This means that an expression like:

@contains(
  createArray(
    activity('Fail1').status,
    activity('Notebook').status
  ),
  'Failed'
)

in the if-condition of this pipeline:
Image

will work differently in tests compared to production. My preferred solution would be for Fabric to have a 'Skipped' status for skipped activities, but that is a different matter. For the testing framework to match Fabric it should fail to evaluate the if condition.

For completeness, this is the error:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions