Skip to content

Conversation

@sfmskywalker
Copy link
Member

@sfmskywalker sfmskywalker commented Nov 24, 2025

This change is Reviewable

…avior such as variable scoping, child activity execution, and mixed variable types.
Copilot finished reviewing on behalf of sfmskywalker November 24, 2025 17:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive test coverage for the Container activity, an abstract base class in Elsa Workflows that controls collections of child activities and variables. The tests verify core functionality including variable scoping, auto-naming of unnamed variables, sequential child activity execution, and proper memory management.

Key Changes:

  • Unit tests for Container activity behavior (variable declaration, activity scheduling, auto-naming)
  • Integration tests for end-to-end workflow execution with containers
  • Test workflows demonstrating various container scenarios (nested containers, mixed variable types, dynamic activities)

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
test/unit/Elsa.Activities.UnitTests/Composition/ContainerTests.cs Unit tests for Container activity covering variable management, activity scheduling, and edge cases with 250 lines of test code
test/integration/Elsa.Workflows.IntegrationTests/Activities/Container/ContainerTests.cs Integration tests verifying complete workflow execution with containers, including output validation
test/integration/Elsa.Workflows.IntegrationTests/Activities/Container/Workflows.cs Test workflow definitions demonstrating various container scenarios (simple, nested, variables, dynamic)
test/integration/Elsa.Workflows.IntegrationTests/Activities/Container/TestContainer.cs Concrete implementation of abstract Container for testing sequential child activity execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants