Skip to content
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

After migration to junit5 build output become to have output #7391

Closed
romani opened this issue Dec 19, 2019 · 6 comments
Closed

After migration to junit5 build output become to have output #7391

romani opened this issue Dec 19, 2019 · 6 comments

Comments

@romani
Copy link
Member

romani commented Dec 19, 2019

problem can be seen at https://travis-ci.org/checkstyle/checkstyle/jobs/626861728#L1131

Example:

[INFO] Running com.puppycrawl.tools.checkstyle.JavadocPropertiesGeneratorTest
Missing required options [--destfile=<outputFile>, params[0]=<inputFile>]
Usage: java com.puppycrawl.tools.checkstyle.JavadocPropertiesGenerator [-hV]
       --destfile=<outputFile> <inputFile>
      <inputFile>   The input file.
      --destfile=<outputFile>
                    The output file.
  -h, --help        Show this help message and exit.
  -V, --version     Print version information and exit.
Missing required parameter: <inputFile>
Usage: java com.puppycrawl.tools.checkstyle.JavadocPropertiesGenerator [-hV]
       --destfile=<outputFile> <inputFile>
      <inputFile>   The input file.
      --destfile=<outputFile>
                    The output file.
  -h, --help        Show this help message and exit.
  -V, --version     Print version information and exit.
Usage: java com.puppycrawl.tools.checkstyle.JavadocPropertiesGenerator [-hV]
       --destfile=<outputFile> <inputFile>
      <inputFile>   The input file.
      --destfile=<outputFile>
                    The output file.
  -h, --help        Show this help message and exit.
  -V, --version     Print version information and exit.
Missing required option '--destfile=<outputFile>'
Usage: java com.puppycrawl.tools.checkstyle.JavadocPropertiesGenerator [-hV]
       --destfile=<outputFile> <inputFile>
      <inputFile>   The input file.
      --destfile=<outputFile>
                    The output file.
  -h, --help        Show this help message and exit.
  -V, --version     Print version information and exit.

but there are more out and even exception output.

Expected: UT should produce no output to plugin, build log should be clean from any unrelated information (as it was before)
it is not first time to come to such situation .... is there a way to fail build if some output is leaked ?

@romani
Copy link
Member Author

romani commented Dec 19, 2019

@pbludov , please address.

@pbludov
Copy link
Member

pbludov commented Dec 20, 2019

This is the limitation of junit5-system-extensions. I created issue itsallcode/junit5-system-extensions#16

@romani
Copy link
Member Author

romani commented Dec 20, 2019

Hey, junit5 creates more problems than it being benefits

@romani
Copy link
Member Author

romani commented Dec 20, 2019

Does it make sense to revert MainTest till issue is resolved?
I think we have no problems to mix junit5 and junit4.

@pbludov
Copy link
Member

pbludov commented Dec 21, 2019

Does it make sense to revert MainTest till issue is resolved?
I think we have no problems to mix junit5 and junit4.

Let's wait for an answer from junit5-system-extensions team. If this is a difficult task, then commit 2e8ddda for MainTest and JavadocPropertiesGeneratorTest should be reverted.

@checkstyle checkstyle deleted a comment from rnveach Dec 22, 2019
@pbludov pbludov self-assigned this Dec 28, 2019
pbludov added a commit to pbludov/checkstyle that referenced this issue Dec 28, 2019
@rnveach
Copy link
Member

rnveach commented Dec 28, 2019

Fix was merged

@rnveach rnveach closed this as completed Dec 28, 2019
@rnveach rnveach added this to the 8.28 milestone Dec 28, 2019
@pbludov pbludov removed their assignment Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants