reqnroll / Reqnroll

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

Does not compile feature in pt-BR when the word contains accents #23

Closed tulavalle closed 6 months ago

tulavalle commented 6 months ago

Reqnroll Version

1.0.0

Which test runner are you using?

xUnit

Test Runner Version Number

2.5.6

.NET Implementation

.NET 8.0

Test Execution Method

Visual Studio Test Explorer

Content of reqnroll.json configuration file

{ "$schema": "https://schemas.reqnroll.net/reqnroll-config-latest.json",

"language": { "feature": "pt-BR" } }

Issue Description

Does not compile feature in pt-BR when the word contains accents:

Funcionalidade: Calculator

Simple calculator for adding two numbers

@mytag Cenário: Add two numbers Dado the first number is 50 E the second number is 70 Quando the two numbers are added Então the result should be 120

Steps to Reproduce

Write a feature using gherkin reserved words in the pt-BR language:

compile the project and check if an error occurs:

image

However, there is no error if I remove accents, but it is a spelling error in this language:

image

Link to Repro Project

https://github.com/tulavalle/ReqnrollSelenium.git

gasparnagy commented 6 months ago

@tulavalle This is strange, because the parsing of the files is not done by Reqnroll itself, but by the Cucumber Gherkin parser. Was this working with SpecFlow before or is this a new project?

tulavalle commented 6 months ago

Hi @gasparnagy ! It was a new project, I ran tests here and restarted the machine, it seems to have returned to normal: image It even normalized the developer console, after installing the Reqnroll extension it was no longer opening. I will create a new project in a few days and see if the same thing happens. Any eventuality I will share here!

Note: The same did not happen when migrating projects, I migrated large projects and it was very easy and uneventful. I needed to revert to Specflow because I depend on LivingDoc to publish the documentation for the LivingDoc extension on Azure. As soon as this functionality is implemented I will definitely migrate, congratulations on the work with Reqnroll, Specflow is very good and ReqnRoll is even better!