-
Notifications
You must be signed in to change notification settings - Fork 531
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
TCK: some checks could be extended to accept shorter Publishers #354
Comments
@akarnokd Would it be possible to select a verification based on the length of the Publisher being tested? |
The problem with multiple sub-cases inside an outer |
@akarnokd Wouldn't it be possible to skip the tests which are not applicable by making them pass? |
Currently, if a test is not applicable the implementation throws: throw new SkipException(String.format("Unable to run this test, as required elements nr: %d is higher than supported by given producer: %d", elements, maxElementsFromPublisher())); We'd have to collect all such exceptions and rethrow a composite of them, i.e., SkipException if sub-tests were skipped or AssertionError if some tests failed + some were skipped. The question is, what style of changes are you (and @ktoso ) willing to accept to the test classes. |
My personal preference are: better TCK coverage, minimal-if-any-BC-breakages, better TCK failure error messages. |
In
PublisherVerification
, many tests require 3, 5, 6, 10 or even 20 elementPublisher
s and are not run against, for example 0 or 1Publisher
s (for example, 309, 317, etc).I think these tests could be extended to support more length but I don't know what's the policy about adding more tests to
PublisherVerification
because:PublisherVerificationRule
(although it is marked as internal) is not compatible,PublisherVerification
surface is not binary compatible andThe text was updated successfully, but these errors were encountered: