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

[WIP] Adapt log4j configuration for junit tests #3511

Closed
wants to merge 2 commits into from

Conversation

Siedlerchr
Copy link
Member

@Siedlerchr Siedlerchr commented Dec 10, 2017

Fixes #3510

After searching and reading around I now set the log level to off.
Failures are still reported, but the travis output is no longer cluttered


  • Change in CHANGELOG.md described
  • Tests created for changes
  • Screenshots added (for bigger UI changes)
  • Manually tested changed features in running JabRef
  • Check documentation status (Issue created for outdated help page at help.jabref.org?)
  • If you changed the localization: Did you run gradle localizationUpdate?

@Siedlerchr Siedlerchr changed the title Remove configuration for junit tests [WIP] Remove configuration for junit tests Dec 10, 2017
@Siedlerchr Siedlerchr changed the title [WIP] Remove configuration for junit tests [WIP] Adapt log4j configuration for junit tests Dec 10, 2017
@Siedlerchr Siedlerchr changed the title [WIP] Adapt log4j configuration for junit tests Adapt log4j configuration for junit tests Dec 24, 2017
@Siedlerchr Siedlerchr added status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers testing build-system labels Dec 24, 2017
@tobiasdiez
Copy link
Member

For travis this is ok, but with this configuration no errors and warnings are reported during debug sessions of tests, right?

Copy link
Member

@LinusDietz LinusDietz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested it locally on MacOs. Failing tests are logged, but nothing else.

@Siedlerchr
Copy link
Member Author

@tobiasdiez This only applies if you run the tests through gradle. If you manually debug the test in the IDEA, it should be normal behaviour

@tobiasdiez
Copy link
Member

I just tried it and sadly it does not work in IntelliJ. For example, the method FileUtilTest.testRenameFileWithFromFileExistAndOtherToFileExist currently prints an error, while with the proposed configuration nothing is displayed in the console.

@lenhard
Copy link
Member

lenhard commented Jan 12, 2018

So what about this PR? It is marked as ready-to-review, but it seems it is not functional?

@tobiasdiez tobiasdiez removed the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jan 23, 2018
@tobiasdiez tobiasdiez changed the title Adapt log4j configuration for junit tests [WIP] Adapt log4j configuration for junit tests Jan 23, 2018
@lenhard
Copy link
Member

lenhard commented Jan 30, 2018

Can we get some progress here? The travis log is really annoying at the moment. I'll add this to jabcon in the hope that it gets done then.

@lenhard lenhard added the jabcon label Jan 30, 2018
@Siedlerchr
Copy link
Member Author

I think I have an idea: I commit my changes and add the files to .gitignore So it won't overwrite @tobiasdiez changes on merge/pull right?

@stefan-kolb stefan-kolb closed this Feb 6, 2018
@stefan-kolb stefan-kolb deleted the silenceUnitTests branch February 6, 2018 11:59
Siedlerchr added a commit that referenced this pull request Feb 6, 2018
* 'master' of github.com:JabRef/jabref:
  Allow spaces in DOIs
  Remove irrelevant log messages during XMP reading
  Adapt log4j configuration for cleaner junit tests #3511
  Eclipse Django style #3655
  Better code style for chained methods
  Update build.gradle
  Update build.gradle
  cleanup and refactoring in DuplicateCheck class
  code review fixes - consider pages of the same book separately in duplications detection process; add more tests
  differentiate inbooks with the same author and title, but different chapter
  Remove deprecated static BibtexParser.parse method
  Use stream in matcher (#3696)
  Add some BibtexNameFomatter comments
  Add exception for Jacoco
  Set jacoco toolVersion earlier
  set jacoco version globally
Siedlerchr added a commit that referenced this pull request Feb 7, 2018
* upstream/master: (47 commits)
  Fix Google Scholar fetcher
  Use english for all LCID mappings #1851
  remove import preferences test mock import and convert to junit5
  fix #3693 (#3702)
  Fix space leads to jump in entry editor (#3699)
  Fix #3669
  Extract creation of the contents of FileAnnotationTabController
  Fix changelog
  Fix NPE
  Remove unnecessary file
  use processbuilder for calling external apps
  Fix color highlight of odd linked files
  Fixes #2964
  Fix koppor issues #3
  Allow spaces in DOIs
  Remove irrelevant log messages during XMP reading
  Adapt log4j configuration for cleaner junit tests #3511
  Eclipse Django style #3655
  Better code style for chained methods
  Update build.gradle
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants