Skip to content

Sharing data between dependent tests #4048

@codyspeck-ppa

Description

@codyspeck-ppa

Hi Tom,

I'm wondering if the documentation for sharing data between dependent tests is actually ahead of the implemented feature. In the documentation here, the following statement is made.

This is done by calling the GetTests method on a TestContext object. It takes the test's method name (so you can use nameof(...)) and optionally the parameter types for if there's multiple overloads.

In the actual code, this GetTests implementation is hidden behind an internal access modifier.

// TestContext.Dependencies.cs

public partial class TestContext
{
    internal List<TestContext> GetTests(string testName)
    {
        // Omitted for brevity
    }

Is there another way a test could "receive an output" from a dependent test in the currently available public API? Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions