Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New context-based state management model for allure-csharp #371

Merged
merged 24 commits into from
Aug 18, 2023

Conversation

delatrie
Copy link
Contributor

@delatrie delatrie commented Jul 28, 2023

This PR introduces a new model for managing the global state of allure in allure-csharp integrations.

Current implementation

Currently the global state of allure consists of the storage, the step context and the result accessor.

Key elements

Storage

The storage is a thread safe dictionary residing in Allure.Net.Commons/Storage/AllureStorage.cs. It maps a UUID to the corresponding allure item:

namespace Allure.Net.Commons.Storage
{
    internal class AllureStorage
    {
        private readonly ConcurrentDictionary<string, object> storage = new();
        
        /* The rest of the class */
    }
}

This is basically a global bag of allure items, accessed by their UUIDs. An integration that manipulates the lifecycle maintains these UUIDs somewhere and correlates them with objects of the test framework.

Step context

The step context introduces the notion of the current step container, i.e., the object (a test, a fixture, or another step) that becomes a parent of a newly created step without explicitly specified parent. It's defined as a thread safe dictionary mapping keys to a linked list of UUIDs. A key is typically an ID of the current thread, but it could be redefined to denote an object of a test framework. A linked list denotes a stack of the current steps with the current fixture/test as their root parent.

namespace Allure.Net.Commons.Storage
{
    internal class AllureStorage
    {
        /* The rest of the class */
        
        private readonly ConcurrentDictionary<string, LinkedList<string>> stepContext = new();
        private LinkedList<string> Steps => stepContext.GetOrAdd(
            AllureLifecycle.CurrentTestIdGetter(),
            new LinkedList<string>()
        );
        
        /* The rest of the class */
    }
}

Test result accessor

The test result accessor introduces the notion of the current test container and the current test in the current execution context. It resides in Allure.Net.Commons/Steps/CoreStepsHelper.cs as follows:

namespace Allure.Net.Commons.Steps
{
    public class CoreStepsHelper
    {
        private static readonly AsyncLocal<ITestResultAccessor> TestResultAccessorAsyncLocal = new();

        public static ITestResultAccessor TestResultAccessor
        {
            get => TestResultAccessorAsyncLocal.Value;
            set => TestResultAccessorAsyncLocal.Value = value;
        }

    /* The rest of the class */ 

Limitations

Concurrency issues

The current implementation of the step context has limitations on how it could be used in a concurrent environment:

  1. It creates a way too strong isolation between threads.
  2. It has no isolation of execution contexts that share the same thread.

The following concurrency issues could be observed:

  1. Steps can't be created reliably from async continuations that cross thread boundaries:

    async public Task TestMethod1()
    {
        await Task.Delay(1); // paused; it might be continued in a context created for TestMethod2
        Steps.Step("Step in method 2", () => {}); // Throws if the continuation is scheduled in another thread where no step context exists; There might be a chance the step is added in a context of TestMethod2
    }
    
    async public Task TestMethod2()
    {
        await Task.Delay(1);
    }
  2. Steps can't be created from a child thread:

    public void TestMethod()
    {
        Parallel.For(0, 2, i =>
        {
            Steps.Step($"Step #i", () => {}); // This throws
        });
    }
  3. Steps can't be created reliably from subtasks

    async public Task TestMethod()
    {
        // May lead to an invalid steps structure if Step 1 is continued in a context modified by Step 2
        await Task.WhenAll(
            this.AddStep("Step 1"),
            this.AddStep("Step 2")
        );
    }
    
    async Task AddStep(string name) =>
        await Steps.Step(name, async () => await Task.Delay(0)); // Might be switched to another task after the step is started

See also #83, #286, #325, and #367.

Disparity between the provided API and its usage by test framework integrations

Typically, each integration uses AllureLifecycle's and CoreStepHelper's API to create and maintain the following four structures at each moment of time during the execution:

  • the stack of test containers
  • the current fixture
  • the current test case
  • the stack of steps

But the current API primarily requires the author of the integration to manually track UUIDs for most objects leading to unnecessary overhead.

For example, it should be sufficient to just call AllureLifecycle.WriteTestCase() to emit the current test result (i.e., the most recently started one), while currently authors of integrations are required to use AllureLifecycle.WriteTestCase(string uuid) instead. No allure-csharp integration use this method to emit a test result other than the most recently started one, yet they need to store this uuid somewhere and use it.

New implementation

The new implementation moves away from manual management of the global allure state to automatic management of Allure contextual data. We define Allure contextual data as consisting of the following four elements:

  1. The stack of current containers, i.e., the container context.
  2. The current fixture, i.e., the fixture context.
  3. The current test case, i.e., the test context.
  4. The stack of current step results, i.e., the step context.

These elements fully describe the state of Allure's execution at each moment of time.
Allure contextual data management is implemented in [Allure.Net.Commons/AllureContext.cs]. It's important to note that this class is immutable. Instances can be safely shared between multiple threads or tasks while remaining isolated.

ExecutionContext and AllureContext

Allure context is declared in Allure.Net.Commons/AllureLifecycle.cs as AsyncLocal of Allure contextual data:

namespace Allure.Net.Commons;
public class AllureLifecycle
{
    readonly AsyncLocal<AllureContext> context = new();
    public AllureContext Context
    {
        get => this.context.Value ??= new AllureContext();
        private set => this.context.Value = value;
    }

    /* The rest of AllureLifecycle */
}

Every AsyncLocal instance is controlled by ExecutionContext that in turn is controlled by .NET runtime to achieve a proper isolation between threads, tasks, async methods, etc. You may read more about ExecutionContext in [1].

Since Allure context is a part of ExecutionContext, it automatically has the following characteristics:

  1. It's automatically captured by .NET when a new thread, or a task, or an async method is started.
  2. It's automatically restored by .NET when a task continuation is schedules in some thread.
  3. When an async function returns, it's automatically restored to the value captured just before the function has been called.

Natural context flow

An execution context of the current thread is captured by any newly started concurrent work, including but not limited to:

  • a newly started thread,
  • a work queued in a thread pool,
  • a TPL's work unit (e.g., a delegate passed into Parallel.For),
  • a newly started task,
  • an async method call.

Once the context is captured, it becomes fully isolated from its parent. Changes made to the context aren't visible to other concurrent work besides those that in turn capture the changed context.

Manual context capturing

Since Allure context is a part of ExecutionContext, it naturally flows with it. However, sometimes the natural flow of the execution context isn't sufficient. Let's consider the following situation:

  1. An async function named A calls an async function named B.
  2. B creates a test result activating the test context (a part of Allure context).
  3. B then returns and A continues its execution.
  4. A tries to access the test context and fails because the execution context is restored including Allure context.

Here is the code to illustrate the problem:

public async Task A()
{
    await this.B();
    /*
     * Code that uses modifications applied by B
     * ...
    */
}

public async Task B()
{
    /*
     * Code that modifies Allure context
     * ...
    */

    await Task.CompletedTasl;
}

Here the test case context created in B isn't visible in A and can't be used because ExecutionContext is restored when B is exited.

To overcome this, capture Allure context manually and use the AllureLifecycle.RunInContext method in a manner, similar to how ExecutionContext.Run works:

public async Task A()
{
    var context = await this.B();
    AllureLifecycle.Instance.RunInContext(context, () => // Use the context captured by B
    {
        /*
         * Code that uses modifications applied by B
         * ...
        */
    });
}

public async Task<AllureContext> B()
{
    /*
     * Code that modifies Allure context
     * ...
    */

    return await Task.FromResult(AllureLifecycle.Context); // Captures Allure context and passes it to the caller
}

API changes

The new mechanism requires lots of API changes. Many previously available API members have lost their meaning and are now deprecated.

Allure context manipulation API

A new set of API methods should be used to manipulate Allure context. Refer to the documentation of a function in the list on what requirements it imposes upon Allure context and how it changes the context.

AllureLifecycle AllureLifecycle.StartTestContainer(TestResultContainer container);
AllureLifecycle AllureLifecycle.UpdateTestContainer(Action<TestResultContainer> update);
AllureLifecycle AllureLifecycle.StopTestContainer();
AllureLifecycle AllureLifecycle.WriteTestContainer();
AllureLifecycle AllureLifecycle.StartBeforeFixture(FixtureResult result);
AllureLifecycle AllureLifecycle.StartAfterFixture(FixtureResult result);
AllureLifecycle AllureLifecycle.UpdateFixture(Action<FixtureResult> update);
AllureLifecycle AllureLifecycle.StopFixture(Action<FixtureResult> beforeStop);
AllureLifecycle AllureLifecycle.StopFixture();
AllureLifecycle AllureLifecycle.StartTestCase(TestResult testResult);
AllureLifecycle AllureLifecycle.UpdateTestCase(Action<TestResult> update);
AllureLifecycle AllureLifecycle.StopTestCase(Action<TestResult> beforeStop);
AllureLifecycle AllureLifecycle.StopTestCase();
AllureLifecycle AllureLifecycle.WriteTestCase();
AllureLifecycle AllureLifecycle.StartStep(StepResult result);
AllureLifecycle AllureLifecycle.UpdateStep(Action<StepResult> update);
AllureLifecycle AllureLifecycle.UpdateStep(Action<StepResult> beforeStop);
AllureLifecycle AllureLifecycle.StopStep();
AllureLifecycle AllureLifecycle.AddScreenDiff(string expectedPng, string actualPng, string diffPng);

Allure context capturing API

The following API can be used to capture Allure context and to execute a custom code in the captured context. Refer to the documentation for more details.

AllureContext AllureLifecycle.Context { get; }
AllureContext AllureLifecycle.RunInContext(AllureContext? context, Action action);

See also the example above.

Deprecated API members

The following API members now does nothing and will be removed in one of the future releases:

Func<string>? AllureLifecycle.CurrentTestIdGetter { get; set; }
ITestResultAccessor? CoreStepsHelper.TestResultAccessor { get; set; }

Lots of API methods that require explicit uuid parameters are also deprecated:

AllureLifecycle Allure.Net.Commons.AllureLifecycle.StartTestContainer(string parentUuid, TestResultContainer container);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.UpdateTestContainer(string uuid, Action<TestResultContainer> update);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StopTestContainer(string uuid);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.WriteTestContainer(string uuid);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StartBeforeFixture(FixtureResult result, out string uuid);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StartBeforeFixture(string uuid, FixtureResult result);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StartBeforeFixture(string parentUuid, FixtureResult result, out string uuid);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StartBeforeFixture(string parentUuid, string uuid, FixtureResult result);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StartAfterFixture(string parentUuid, FixtureResult result, out string uuid);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StartAfterFixture(string parentUuid, string uuid, FixtureResult result);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.UpdateFixture(string uuid, Action<FixtureResult> update);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StopFixture(string uuid)
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StartTestCase(string containerUuid, TestResult testResult);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.UpdateTestCase(string uuid, Action<TestResult> update);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StopTestCase(string uuid);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.WriteTestCase(string uuid);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StartStep(StepResult result, out string uuid);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StartStep(string uuid, StepResult result);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StartStep(string parentUuid, string uuid, StepResult stepResult);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.UpdateStep(string uuid, Action<StepResult> update);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.StopStep(string uuid);
AllureLifecycle Allure.Net.Commons.AllureLifecycle.AddScreenDiff(string testCaseUuid, string expectedPng, string actualPng, string diffPng);
void Allure.Net.Commons.Steps.CoreStepsHelper.StopFixtureSuppressTestCase(Action<FixtureResult> updateResults = null);
void Allure.Net.Commons.Steps.CoreStepsHelper.PassStep(string uuid, Action<StepResult>? updateResults = null);
void Allure.Net.Commons.Steps.CoreStepsHelper.FailStep(string uuid, Action<StepResult>? updateResults = null);
void Allure.Net.Commons.Steps.CoreStepsHelper.BrokeStep(string uuid, Action<StepResult>? updateResults = null);
void NUnit.Allure.Core.AllureExtensions.AddScreenDiff(AllureLifecycle lifecycle, string expected, string actual, string diff);

Authors that use these methods should migrate to the new Allure context API described above.

Other changes

AllureLifecycle thread safety

Potentially concurrent access to instances of Allure object model in AllureLifecycle is now guarded with a lock to prevent data races in multi-threaded environments.

NUnit OneTimeSetUp fixtures support

Currently the support of NUnit's OneTimeSetUp fixtures is broken in the preview branch. With this PR the support is back:

Allure.SpecFlowPlugin failed feature hook placeholder

Now, if a feature-level hook throws an exception, a broken placeholder scenario is created in the report instead of marking all passed scenarios as broken (in case of an AfterFeature hook).
Before this change such a placeholder had been created in case of a failed BeforeFeature hook only.

C# language version

Each project in this repo now explicitly specifies its language version. For now, it's C# 11.

Null checking

We slowly phase in null checking in the repo. Currently, null checking is enabled globally for the following projects:

  • Allure.SpecFlowPlugin

Null checking is enabled on a per file basis for the following files:

  • Allure.Net.Commons/AllureLifecycle.cs
  • Allure.Net.Commons/AllureContext.cs
  • Allure.Net.Commons/Storage/AllureStorage.cs
  • Allure.Net.Commons/Steps/CoreStepsHelper.cs
  • Allure.XUnit/AllureMessageSink.cs
  • Allure.XUnit/AllureXunitHelper.cs

We will continue to embrace this feature until all the code base if affected.

Fixes #83
Fixes #367

Checklist

- Add bool props to test context to context's public API
- Fix context string conversion
- Migrate allure-xunit's code to the new context implementation
  - Improve error messages and doc comments
  - Add DebuggerDisplay for context
  - Uuid in string representation of context if names are empty
  - Old storage uuid-based methods obsoleted
  - Make RunInContext return modified context
  - Replace unsupported container nesting with test nested
    into each container in chain
  - Container and test starting now add objects into storage by
    uuids (transition period)
Additionally:
  - Change broken status to failed for some scenario and step conditions
  - Add extra test case instead of changing state of existing one in case
    after feature failed
  - Enable nullable check project-wide
@delatrie delatrie marked this pull request as ready for review August 2, 2023 08:45
@delatrie delatrie linked an issue Aug 2, 2023 that may be closed by this pull request
3 tasks
  - bump actions/checkout to 3.5.3
  - bump actions/setup-dotnet to 3.2.0
  - add dotnet 3.1 and 6.0 SDKs back to build and test
  - Change --no-restore to --no-build in dotnet test step
Allure.NUnit.Examples/BaseTest.cs Show resolved Hide resolved
Allure.NUnit/Core/AllureExtensions.cs Show resolved Hide resolved
Allure.SpecFlowPlugin/Allure.SpecFlowPlugin.csproj Outdated Show resolved Hide resolved
  - Add allure directory clean before all tests in Allure.NUnit.Examples
  - NUnit.Allure.Core.AllureExtensions.AddScreenDiff is back
    and marked as obsolete (it just directly calls
    AllureLifecycle.AddScreenDiff now).
  - Intendation in Allure.SpecFlowPlugin.csproj fixed.
@delatrie
Copy link
Contributor Author

delatrie commented Aug 9, 2023

Thanks for the review, @neparij !

I've also discovered a bug with OneTimeSetUp fixture popping up in every test in the report regardless on whether the test has one or not.
The PR is already quite big, and this bug is most likely present in an existing preview version, although has been hidden by the issue with non-working fixtures until now. So, I've split it out into a new issue #374.

@delatrie delatrie requested a review from neparij August 9, 2023 06:28
@neparij neparij merged commit 18679f7 into preview Aug 18, 2023
3 checks passed
@delatrie delatrie linked an issue Sep 7, 2023 that may be closed by this pull request
neparij added a commit that referenced this pull request Oct 16, 2023
* Adds AllureBefore and AllureAfter to Allure.NUnit package

* NUnit: Ability to change testresult on fixture executions

* Preserve testResult.start time if it exists in update container

* SpecFlowNunit: add custom labels

* Fix missing output attachments in NUnit adapter

* Added step logging for NUnit (closes #312)

* Fixed NullPointerException if NUnit StepLogger was null (#315)

* embed untracked sources

* build process update

* NUnit Fix async behaviour in [AllureStep] aspect + Allow '{obj.prop}' placeholders in [AllureStep] step name (#329)

Co-authored-by: Кабанов Константин Юрьевич <kykabano@mts.ru>

* Package assets fix

* NUnit - Add an ability to save OneTimeSetUp step results (#333)

* Handle case when underlying step returns Task<T> masked as non-generic Task (#343)

* Unify xunit and nunit step acpects

* Replace allure-xunit's custom attributes with runner reporter (fixes #344) (#366)

* Add support for native xunit attributes

* Fix AllureXunitTheoryAttribute base class

* Fix missing theories

* Fix missing parameters and fixture duplication for some tests

* Add support for static test functions

* Update xunit examples. Obsolete allure-xunit attributes

* Update message sink to match new steps implementation

* Remove irrelevant log method from runner

* Bump harmony to 2.3-prerelease.2. Warn if no args reported

Change Lib.Harmony dependency to 2.3-prerelease.2 for .net 7 support.
Add warning if the patch via harmony didn't work for theory args and
args aren't reported on the testcase level.

* Fix reference to lib.harmony to be listed by dotnet

* Factor out allure-related code. Tidying up obsolescence

  - Allure-xunit's code that creates, updates, starts, stops and writes
    allure objects is factored out from AllureMessageSink to
    AllureXunitHelper .
  - Removal of AllureXunitHelper's public methods was reverted. The
    methods are marked as obsolete.
  - Add missing await to an allure-xunit example to suppress the
    compilation warning.
  - Mark obsoleted allure-xunit attributes as non-browsable to prevent
    them from appearing in IDE's suggestions.

* Add deprecation info and known issues to allure-xunit README

* Fix issue links in allure-xunit readme

* Fix obsolescence message for AllureXunitHelper's public methods

* New context-based state management model for allure-csharp (#371)

* Add AllureContext lass to isolate allure state from threads and async tasks

* Add concurrency tests. Reformulate context in terms of active/inactive

* Add tests on the context capturing by child threads/tasks

* Modify lifecycle/storage to use new context model. Add context get/set API

* Make CoreStepsHelper use AllureLifecycle's context

* Make lifecycle thread safe. Fix multithreading issues in lifecycle tests

* Several improvements on context. Allure-xunit migration

- Add bool props to test context to context's public API
- Fix context string conversion
- Migrate allure-xunit's code to the new context implementation

* Bump C# language version to 11 for all projects

* Enable null checks in some classes of allure-xunit

* Make lifecycle methods with explicit uuids obsoleted

* Minor changes in context and lifecycle

  - Improve error messages and doc comments
  - Add DebuggerDisplay for context
  - Uuid in string representation of context if names are empty
  - Old storage uuid-based methods obsoleted
  - Make RunInContext return modified context
  - Replace unsupported container nesting with test nested
    into each container in chain
  - Container and test starting now add objects into storage by
    uuids (transition period)

* Rewrite Allure.NUnit to support the new context scheme

* Fix Allure.XUnit usage of RunInContext

* Rewrite Allure.SpecFlowPlugin to support new context scheme

Additionally:
  - Change broken status to failed for some scenario and step conditions
  - Add extra test case instead of changing state of existing one in case
    after feature failed
  - Enable nullable check project-wide

* Separate context from storage

  - AllureContext moved to Allure.Net.Commons namespace
  - Context and storage are separated; Storage will be removed later
  - File scope namespaces for lifecycle and context

* Fix obsolete messages. Add file scoped namespaces

* Revert obsoleted StopFixtureSuppressTestCase to be intact

* Add new info to commons README

* Fix invalid test start. Remove rudimentary test start check

* Remove dotnet SDK 3.1 installation from build pipeline

* Change .NET SDK version to 7.0 in build pipeline

* Github pipelines fix

  - bump actions/checkout to 3.5.3
  - bump actions/setup-dotnet to 3.2.0
  - add dotnet 3.1 and 6.0 SDKs back to build and test
  - Change --no-restore to --no-build in dotnet test step

* Rename a placeholder scenario

* Implement requested changes for PR #371

  - Add allure directory clean before all tests in Allure.NUnit.Examples
  - NUnit.Allure.Core.AllureExtensions.AddScreenDiff is back
    and marked as obsolete (it just directly calls
    AllureLifecycle.AddScreenDiff now).
  - Intendation in Allure.SpecFlowPlugin.csproj fixed.

* NUnit: Fix inconsistent one-time fixtures behavior (fixes #286, #374 and #375) (#380)

* Fix inconsistent one-time fixtures behavior (fixes #374)

* Fix crash when running test from empty namespace (fixes #375)

* Fix indentation for AllureAsyncOneTimeSetUoTests.cs

* Allure-xunit: support for the second reporter and xunit 2.5.0. Updated packaging and AspectInjector (fixes 368) (#382)

* xunit: change sink base, remove redundant err logging

* Add ability to compose xunit runner reporters (implements #368)

* Extract allure-xunit runner reporter into separate project

* Factor out common props. Bump and tune injector

* Reflect new project structure in solution

* Enable fully deterministic build in CI

* Add startup message to Allure.XUnit

* Fix second reporter property name in config for Allure.XUnit's example

* Rewrite how to run section and fix allure-xunit's README

* Fix comment in Directory.Build.props

* Revert AspectInjector build optimization

* Add link to allureConfig.json issue

* Fix release workflow to apply version via .props

* Change net.commons description

It's quite different from allure-java-commons now.

* Improve readability of ResolveExplicitReporter

* Fix typo in allure-xunit README

* release 2.10.0-preview.1

* set next development version 2.11

* Selective run support: commons, nunit, xunit (#390)

* Implement selective run commons

* Change GetAllureId to take an enumeration

* Implement selective run for allure-nunit

* Add a shorthand for testplan's IsMatch

* Implement selective run for allure-xunit

* Move TestPlan property to commons. Rename selection check method

* Allure-specflow: selective run support (#392)

* Fix regression: non-working lambda-steps and lambda-fixtures API (#393)

* allure-xunit: provide default config when allureConfig.json is missing

Fixes #381

* Fix async step/fixture wrapper functions

  - make async Step, Before and After obey .NET's ExecutionContext capturing rules
  - refactor CoreStepsHelper to be more testable
  - write tests for CoreStepsHelper's Step, Before and After

More tests are needed to fully cover CoreStepsHelper.

Fixes #383
Fixed #388

* Add async suffix to private step methods

This helps to make distinction more clear to a reader.

* Fix identification properties and parameter formatting (#395)

* Bump NUnit for test and example projects

* Add json schemas for allureConfig and testplan

* Fix schema for allure-xunit and allure-specflow config

* Add legacy naming switch to config

* Update schema links to current branch

* Add schema links update task to release workflow

* Implement UUID and method-based fullName algorithms

* Common fns to calculate testCaseId, historyId and parameter value

* Add docstrings to new id-related functions

* Add function to create fullName from class

* Fix allureConfig item type for allure-nunit examples

* Add missing setter for UseLegacyIds config property

* Add framework label factory

* Fix uuid, fullName, historyId, testCaseId for allure-nunit

UseLegacyIds option is honored.

Additionally:
  - fix uuid for containers
  - fix missing historyId for ignored tests. Same id rules apply as for non-ignored tests (fixes #345)
  - add NUnit 3 framework label to test results
  - remove suites from AllureDisplayIgnored (now suites can be applied directly)
  - fix parameter names for parametrized test methods

* Apply custom formatters to step title and parameters

Now step title interpolation and step parameter value conversion uses the same
algorithm as test parameter conversions.

Fixes #377

* Add language label to commons and NUnit

* Fix uuid, fullName, historyId, testCaseId for allure-xunit

Legacy identifiers switch is honored.

Additionally:
  - Add framework and language labels to allure-xunit test results
  - Fix test parameters formatting. Custom type formatters are also used now

* Add no-formatters step helper overloads back to public API

* Revert autoedit this removal from StepFunctionTests.cs

* Fix uuid, fullName, historyId, testCaseId for allure-specflow

Legacy ids switch is honored.

Implements #387

* Implement requested changes

* Lower the required AspectInjector version for users back to 2.8.1 (workaround for #391) (#396)

* Add workaround for #391

* Comment AspectInjector workaround step in publish.yml

* Add Rosetta warning in package READMEs. Fix allure-nunit readme

* Update allure-xunit and allure-specflow README (#397)

---------

Co-authored-by: qameta-ci <qameta-ci@qameta.io>
Co-authored-by: Andrey Gurenkov <undron@users.noreply.github.com>
Co-authored-by: Constantine <overlord1983@mail.ru>
Co-authored-by: Кабанов Константин Юрьевич <kykabano@mts.ru>
Co-authored-by: Alexander Kulakov <a.kulakov@dodopizza.com>
Co-authored-by: Dmitry Pavlushin <d.pavlushin@dodopizza.com>
Co-authored-by: Maxim <17935127+delatrie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment