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
Create tests from xdoc examples #13100
Comments
Where should those examples reside? I suggest we do Also, shall we consider using different file names for those? |
My thoughts on filename were to have some numerical component that defines the order that the examples appear. |
I would put them in separate folder like Or src/test/resources-xdoc I still have worries that such inputs might have separate style rules , like file size less then 20 lines. |
We need validation that all Inputs in such folder are executed and used in xdoc. |
I think it is better to do |
ok , I agree on this naming
or
or
https://github.com/checkstyle/checkstyle/tree/master/src/test if we do not plan to reuse regular test classes, we should make separate folder for xdoc-test as we did for
So they will live by their own life and rules, and might be not a part of code coverage. Better to not keep them as critical part of coverage. |
I think the last structure proposed makes the most sense, let’s do it. |
@romani I think this issue shouldn't be closed. We use it as a tracker. |
@nrmancuso @romani Could you please approve the issue? |
…ks xdoc examples
@stoyanK7 was there something left to do for IllegalIdentifierName? Please update checklist if not. |
For example,
should turn into
Edit: As time progressed since this issue was created, a few things changed. Example configurations should be in XML (as shown above) and the code should have delimiters surrounding the class definition. Moreover, examples will be excluded from xdoc-javadoc validation. When this issue is closed, there will be a list of all modules below in
XdocsJavadocsTest
. This list can be removed along with theif
-statements using it.For convenience, this issue takes care of multiple things - moving examples to test files, placing macros in place of the examples, adding id to each example, and removing examples from class javadoc.
Filters:
The text was updated successfully, but these errors were encountered: