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

Issue 8 #19

Merged
merged 17 commits into from
Mar 22, 2018
Merged

Issue 8 #19

merged 17 commits into from
Mar 22, 2018

Conversation

michelole
Copy link
Member

This fixes #8.

So that it can be used on integration tests on a different package.
When two invocations of InterAnnotatorAgreement were made in sequence, the python command would include both previous and current paths, due to the COMMAND variable being static.

This fixes it by creating the full command dynamically.
The tests ensure that XML files generated by PatientDAO can be read and parsed by the iaa.py and generate expected results.
Receive OutputStream as parameter and do not return null.
Make methods non-static so that the DocumentBuilder can be reused.
Transformer should be initialized only once. Make it singleton for at least each object creation.
Due to differences between Java 8 and 9 (http://java9.wtf/xml-transformer/), relax the comparison between generated and expected XML files using XMLUnit.

Then, roll back the expected.xml to one closer to the sample files.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 17

  • 57 of 72 (79.17%) changed or added relevant lines in 5 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+6.6%) to 68.98%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/at/medunigraz/imi/bst/n2c2/evaluator/InterAnnotatorAgreement.java 1 8 12.5%
src/main/java/at/medunigraz/imi/bst/n2c2/dao/PatientDAO.java 50 58 86.21%
Files with Coverage Reduction New Missed Lines %
src/main/java/at/medunigraz/imi/bst/n2c2/evaluator/InterAnnotatorAgreement.java 1 13.79%
Totals Coverage Status
Change from base Build 15: 6.6%
Covered Lines: 169
Relevant Lines: 245

💛 - Coveralls

@michelole michelole merged commit 31fe04f into bst-mug:master Mar 22, 2018
@michelole michelole deleted the issue-8 branch March 27, 2018 09:00
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.

Write output
2 participants