-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Issue #14937: Migrated section 3.2 Package Statement to follow chapter wise testing #15001
Conversation
0b4dbed
to
053df1d
Compare
GitHub, generate site |
5a08a7b
to
0d506cd
Compare
I had to explicitly create a new test file to test very long package statement. It was not possible to do in single test file as the package names would be different ( rule32packagestatement & toolongpackagetotestcoveragegooglesjavastylerule): |
0d506cd
to
8420b54
Compare
GitHub, generate site |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
item:
...ogle/checkstyle/test/chapter3filestructure/rule32packagestatement/InputPackageStatement.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
items:
.../java/com/google/checkstyle/test/chapter3filestructure/rule332nolinewrap/LineLengthTest.java
Show resolved
Hide resolved
...ter3filestructure/toolongpackagetotestcoveragegooglesjavastylerule/PackageStatementTest.java
Show resolved
Hide resolved
.../chapter3filestructure/toolongpackagetotestcoveragegooglesjavastylerule/InputLineLength.java
Show resolved
Hide resolved
8420b54
to
c0d7a21
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last
can you restart the CI for cancelled checks? @romani |
lets see if we can migrate - #15023 |
c0d7a21
to
6521bff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last
...er3filestructure/toolongpackagetotestcoveragegooglesjavastylerule/InputPackageStatement.java
Outdated
Show resolved
Hide resolved
6521bff
to
30e9e18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last
30e9e18
to
991f6bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
absolutely last :
991f6bf
to
381fccd
Compare
…low chapter wise testing
381fccd
to
245f4fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok to merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
issue #14937
migrated section
3.2 Package Statement
to follow chapter wise testing.This section uses 2 modules: LineLength & NoLineWrap.
section 3.3.2 uses LineLength module too, it had input file for it but did not had test class. It was using section 3.2's test class. So technically we had the line length's input file for section 3.3.2 but we were not using it anywhere in the test class.
And I had to combine the LineLength & NoLineWrap module test classes into single test class for section 3.2. So I created a new test class for LineLength module for section 3.3.2 which uses the correct input file.
We had a very long package statement input file for section 3.2 to test that we allow for very long package statements but we were not using it anywhere in the test class, so I created a new test class for it.
Deleted unnecessary code which did not contributed to ensure the correct implementation of the section from input files.
Also corrected the
test
url for section 4.4