Noksa / Allure.NUnit

C# NUnit Allure with improvements and SpecFlow3 adapter
MIT License
18 stars 6 forks source link

Value cannot be null. (Parameter 'key') when try to use NuGet Package #40

Closed dklementyev closed 4 years ago

dklementyev commented 4 years ago

Describe the bug Hi! When I try to run test cases with this Adapter i received System.ArgumentNullException : Value cannot be null. (Parameter 'key')

StackTrace: ConcurrentDictionary2.ThrowKeyNullException() ConcurrentDictionary2.TryGetValue(TKey key, TValue& value) ConcurrentDictionary`2.get_Item(TKey key) AllureStorage.Get[T](String uuid) AllureStorage.AddStep(String parentUuid, String uuid, StepResult stepResult) AllureLifecycle.StartStep(String parentUuid, String uuid, StepResult stepResult) AllureTestTracerWrapper.StartStep(StepInstance stepInstance) ITestTracer.TraceStep(StepInstance stepInstance, Boolean showAdditionalArguments) TestExecutionEngine.ExecuteStep(IContextManager contextManager, StepInstance stepInstance) TestExecutionEngine.Step(StepDefinitionKeyword stepDefinitionKeyword, String keyword, String text, String multilineTextArg, Table tableArg) TestRunner.Given(String text, String multilineTextArg, Table tableArg, String keyword) TestCasesFeature.AddTwoNumbers() line 8

Framework: .NET Core 3.1

Packages: Microsoft.NET.Test.SDK 16.4.0 Noksa.NUnit.SpecFlow3 1.1.4 NUnit3TestAdapter 3.16.1 SpecFlow 3.1.80 SpecFlow.NUnit.Runners 3.1.80 Specflow.NUnit 3.1.80 SpecFlow.Tools.MsBuild.Generation 3.1.80

To Reproduce

Expected behavior

Screenshots

Versions

dklementyev commented 4 years ago

Sorry, found and issue in Closed similar with mine. Solution is - add specflow.json and fill it with:

{
  "stepAssemblies": [
    {
      "assembly": "Allure.SpecFlowPlugin"
    }
  ]
}