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

Fixing #2940. Upgrading to use JUnit 5 #5071

Merged
merged 3 commits into from
Sep 27, 2018

Conversation

poikilotherm
Copy link
Contributor

@poikilotherm poikilotherm commented Sep 20, 2018

Will use JUnit 5 with Jupiter 5.3 engine combined with JUnit 4.12 Vintage Engine.

This allows us to have both versions active in parallel and make the migration easier.

There is still an issue with the IT tests (output from only running the failing test, don't get fooled by the counts):

[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 12.17 s <<< FAILURE! - in HarvestingServerIT
[ERROR] testOaiFunctionality  Time elapsed: 9.895 s  <<< ERROR!
com.jayway.restassured.path.xml.exception.XmlPathException: Failed to parse the XML document
        at edu.harvard.iq.dataverse.api.HarvestingServerIT.testOaiFunctionality(HarvestingServerIT.java:153)
Caused by: org.xml.sax.SAXParseException: DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true.
        at edu.harvard.iq.dataverse.api.HarvestingServerIT.testOaiFunctionality(HarvestingServerIT.java:153)

This does not seem to be JUnit related, so maybe ignore this for this PR?

Related Issues

Pull Request Checklist

  • Unit tests completed
    • Fixed IngestableDataCheckerTest.testTestSAVformat() unit test, which was failing with 4.12.
      This was not an engine fault but a mistake within the test case itself.
  • Integration tests: None
  • Deployment requirements, SQL updates, Solr updates, etc.: None
  • Documentation completed
  • Merged latest from "develop" branch and resolved conflicts

@pdurbin pdurbin mentioned this pull request Sep 20, 2018
@poikilotherm poikilotherm force-pushed the 2940-upgrade-junit4 branch 2 times, most recently from 44eef80 to 542da63 Compare September 24, 2018 08:48
@pameyer
Copy link
Contributor

pameyer commented Sep 24, 2018

@poikilotherm That IT failures looks like the one fixed in #5070

@poikilotherm
Copy link
Contributor Author

@pameyer Yes indeed. Shall we wait for that or would you guys like to merge? I can rebase again, too.

…mbined with JUnit 4.12 Vintage Engine.

This allows us to have both versions active in parallel and make the migration easier.

Fixed `IngestableDataCheckerTest.testTestSAVformat()` unit test, which was failing with 4.12.
This was not an engine fault but a mistake within the test case itself.
…{argLine}' in surefire plugin argLine option.
@matthew-a-dunlap
Copy link
Contributor

@poikilotherm If you want to rebase that would be great!

@poikilotherm
Copy link
Contributor Author

Already done 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade JUnit
5 participants