reqnroll / Reqnroll

Open-source Cucumber-style BDD test automation framework for .NET.
https://reqnroll.net
BSD 3-Clause "New" or "Revised" License
310 stars 32 forks source link

External data plugin, support for JSON files #118

Closed mharwig closed 2 months ago

mharwig commented 2 months ago

The PR extends the External Data Plugin to support JSON files, analogous to added support for excel/csv.

Code for handling the json is heavily based on https://github.com/kazantsev033/SpecFlow.Contrib.JsonData by @kazantsev033, but support was added for nested arrays of json objects.

The new concept is demonstrated by the /Plugins/Reqnroll.ExternalData/Reqnroll.ExternalData.ReqnrollPlugin.IntegrationTest/Features/ExternalDataFromJson.feature file.

Attempted to get this merged into SpecFlow before, see https://github.com/SpecFlowOSS/SpecFlow/pull/2700.

Checklist:

gasparnagy commented 2 months ago

@mharwig Super. I will review it in detail within a few days.