Failing tests for Toolkit

(Robby O'Connor) #1


mvn test -U running on my laptop fails with:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:testCompile (default-testCompile) on project openmrs-api: Compilation failure [ERROR] /home/rob/librehealth/lh-toolkit/api/src/test/java/org/openmrs/api/db/[22,35] error: cannot access HibernateContextDAO

I was able to replicate this in Docker as well.

(Robby O'Connor) #2

Also on GitLab CI, it still gets:

OrderServiceTest.saveOrder_shouldThrowAmbiguousOrderExceptionIfDisconnectingMultipleActiveOrdersForTheGivenConcepts Expected exception: org.openmrs.api.AmbiguousOrderException

(Saptarshi Purkayastha) #3

These are brittle tests and will be replaced over the summer. You can just ignore them for now. They sometimes fail, but usually pass

(Robby O'Connor) #4

Okay – I have a docker image I built that will build the war file for deploying after compiling it :slight_smile: