Endnote importer test#321
Conversation
|
Could you add some real EndNote entries? Currently, there seem only test entries to be tested, but no real-life entries. Minor comments
|
|
Please rebase on master so that circleci and codecov will show correct results. |
|
We discovered, that EndNote is also capable of importing EndNote imports both: The RISFormat and the EndNote format (es exported by JabRef). I vote for removing the EndNote importer and focus on the RisImporter. Furthermore, I vote for removing the EndNote exporter and focus on testing the RISExporter. |
|
I started a discussion at jabref-users. It seems that users want to keep support for the old format. |
|
Just leave it as it is right now. :) |
|
OK for me even though some minor issues remain: https://codecov.io/github/JabRef/jabref/src/main/java/net/sf/jabref/importer/fileformat/EndnoteImporter.java?ref=6fb8635b36920b760e3e003d169e4a4fb78626ef - line 194, line 227. |
There was a problem hiding this comment.
You do not need the if-condition here. Just set the Globals.prefs
There was a problem hiding this comment.
Reference in the docs: https://github.com/JabRef/jabref/wiki/Code-Howtos#preferences-in-tests
|
Fixed the mentioned issues and did some more refactoring. |
There was a problem hiding this comment.
Please split this in 3 different tests.
|
The tests with small test files should be tested by inline strings as described here: #354 (comment) |
|
I agree with using direct equals tests than using bib files. However, tests with full bib files should not vanish. We told the students to have a look at GVKParserTest.java and do similar testing. 😇 |
|
Coverage 97.90%. I don't see more test cases to turn the the yellow lines into green ones. If the test cases and test files get speaking names, I'm fine with it. @tobiasdiez Do you agree? |
|
Yes, looks good to me 👍 |
|
I used The |
No description provided.