Error in capturing Cucumber/Capybara test

Asked

Viewed 577 times

0

I need to perform my tests, but there are some errors in the code, but Cucumber is not showing the error, it only brings the error :`

incompatible encoding regexp match (Windows-1252 regexp with UTF-8 string) (Encoding::CompatibilityError)

Failing Scenarios: Cucumber -p html_report -p Chrome Features/specs/solic_new_establishment.Feature:13

But the error is not on line 13 and is already specified # encoding: UTF-8 at .feature. I don’t know what else to do.

3 answers

3


Marco, I started having this error recently and even researching a lot I did not get a response.

Here I arrived the solution and I believe it will be your solution too: If you have a folder with a compound name and space, change to a simple name or add hifen, example: folder-with-name-compound

After doing this here in my project I managed to fix the problem.

0

Could be trouble in your Windowns try it here:

windows utf 8 errors access control panel > region > administrative tab change system location > checkbox mark Beta: use UTF-8 Unicode for world language support

0

This same mistake was happening to me and it was the name of the folder of my project that was giving the problem. Type had a ~ and a ç in the name, and when removing, Capybara again displayed the errors correctly on the command line.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.