-
Notifications
You must be signed in to change notification settings - Fork 603
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
Test Coverage: How to improve? #319
Comments
Let's try replacing We should import at least one existing testsuite before releasing 1.0. |
Reference: |
Is there a source repo behind that site? It isn't using QUnit properly, it should set |
For the record, see https://groups.google.com/forum/#!topic/javascript-globalization/-eq6E9lDHHg for a follow up (where @jzaefferer asks them the above questions). |
There's this perl implementation of a number formatter, with tests: https://github.com/perl-cldr/cldr-number-pm5/tree/master/t Some of those tests are adapted from https://github.com/twitter/twitter-cldr-rb/tree/master/spec/formatters/numbers That project has a lot more, like https://github.com/twitter/twitter-cldr-rb/blob/master/spec/parsers/number_parser_spec.rb |
Added those to the description of this issue as well. Thanks |
A few notes about the tests for cldr-number-pm5 and twitter-cldr-rb: At the time that I started writing the tests for CLDR::Number in 2013, I looked for existing test suites and there were only a few options back then, notably ICU and TwitterCldr. The ICU tests were a big pain to work with and had so much C code throughout them that it seemed like too much work to port into Perl tests. The TwitterCldr tests, on the other hand, used a nice test framework, the tests were easily readable, and I could quickly port them. As I implemented functionality and made sure that it conformed to UTS#35, I had to increasingly change the tests that were based on TwitterCldr because it turned out that many didn't conform to the spec. One example that comes to mind is percent formatting, where the spec says that you pass the value |
Very true. Thanks for sharing these insights. |
How can we improve our test coverage? What test suites can we import (e.g., ECMA-402, google cldr implementation)?
How to improve test coverage reports?
grunt-qunit-instanbul
The text was updated successfully, but these errors were encountered: