OpenMRS Core Master

Build: #2338 was successful Changes by teleivo <teleivo@users.noreply.github.com>

Stages & jobs

  1. Build and Test

  2. Deploy

  3. Release

    Requires a user to start manually

Build result summary

Details

Completed
Queue duration
1 second
Duration
15 minutes
Labels
None
Revisions
openmrs-core
d5585afd4142a3facb1d12340e0c4588f0db6565
openmrs-standalone
8af748fdb6fe93f74ebb4b89e03b262fcd37b5c0
Release scripts
1969d1c2650fc66ab14f5edb4052a329a196f370
Total tests
4410
Successful since
#2327 ()

Tests

Code commits

openmrs-core
Author Commit Message Commit date
teleivo <teleivo@users.noreply.github.com> teleivo <teleivo@users.noreply.github.com> d5585afd4142a3facb1d12340e0c4588f0db6565 TRUNK-5816 powermock reflect is enough for api tests
to set the OpenmrsConstants for more info refer to
bc4adc1efaa488c889d3fd2ab61f8178b7e704b4
teleivo <teleivo@users.noreply.github.com> teleivo <teleivo@users.noreply.github.com> bc4adc1efaa488c889d3fd2ab61f8178b7e704b4 TRUNK-5816 Do not allow PowerMock tests in api package
since PowerMock does not run on JUnit 5 see
https://github.com/powermock/powermock/issues/929

we should prevent new contributions from adding tests written with
PowerMock

We still rely on powermock-api-mockito2 to set the

public static final String OPENMRS_VERSION

of OpenmrsConstants during testing.

There might also be a way to replace this usage and simply use
reflection. That could be investigated at a later point.

Most importantly for our migration to JUnit 5 is that we prevent JUnit 4
tests (and therefore also PowerMock tests) from entering openmrs-core.

We should in general avoid reaching for services via the static Context
methods since that makes testing in isolation hard. Springs dependency
injection allows us to wonderfully configure our services during testing
and production. This is what we need to leverage instead of static
methods that need PowerMock during testing. This also just hides the
fact that a Service has certain dependencies and is an easy way out in
designing our system.

Configuration changes

Some of the jobs or stages referenced by this result no longer exist.

Manual stage Release cannot be run as it references jobs that no longer exist.

Jira issues

IssueDescriptionStatus
Unknown Issue TypeTRUNK-5816Could not obtain issue details from Jira