-
Notifications
You must be signed in to change notification settings - Fork 3
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
Methods-Locales combinations throwing exceptions #4
Comments
@trdsolutions Thank you for your feedback and opening this issue. The open-source community depends on contributions and filing and issue is such a contribution. Thank you also for the source code. I'll definitely take it into consideration. |
@trdsolutions After having looked at the problem, I decided that it would be most useful to run each test for each locale, plus one that doesn't come out of the box to test that the package can use "en" as the fallback solution if needed. NUnit has the concept of |
I just released Version 1.7.0 which fixes this issue for class Effectively, the tests in AddressTests are now executed for all locales except for 'no'. The file 'no.yml' is invalid. However, I don't intend to fix this since the locale files are a verbatim copy from https://github.com/faker-ruby/faker |
Thanks for your effort and thanks for the information regarding the NO locale. (Or maybe other, than throwing an exception if "no" was set, just defaulting back to "en", with a warning log entry?) |
@trdsolutions I just released version 1.8.0 on nuget.org. This is expected to solve this issue. Unless I have overlooked something, all generators that make use of a locale file (usually embedded as a resource) are now tested for each of the built-in locales. As a result the number of tests has increased to a little over 10,000. This still doesn't guarantee absence of defects but hopefully resolves this issue. As suggested by you, I also removed the locale file If you don't mind having a look and letting me know if this new release resolves the issues that you were observing. In my environment the tests you provided now pass after I commented out testing for locale In case I don't hear by 31 Dec 2020 I intend to close this issue as resolved. |
@trdsolutions Beyond the problems reported in this issue I found a few more problems with select locales. I just published version v1.9.0 at https://www.nuget.org/packages/RimuTec.Faker/ which I believe resolves those problems as well. In particular generator As mentioned before, I intend to close this issue as resolved on 31 Dec 2020 unless I hear otherwise. |
@ManfredLange |
@trdsolutions Thank you for confirming that from perspective this issue has been resolved. Thank you again for reporting this issue. Your report was of great value in improving this nuget package. Yes, thank you, I had a great Christmas and am now looking forward to 2021. All the best wishes to you, too! |
Please find attached a test file which can be integrated (added) to the test solutions and is ready to run, where (nearly) all methods for data generation are called for each supported locale (according to the documentation).
The tests demonstrates where exceptions are happing and unfortunatly there are a lot :-(.
Please don't see this with any anger. I really like and appreciate your effort and the package!
AllLocalizationTests.zip
The text was updated successfully, but these errors were encountered: