Skip to main content
View as Markdown

Testing overview

This page explains how iDempiere is tested and which kind of test fits your change. Start here, then follow the pages of this section in order. The test levels on this page apply to all iDempiere versions. The org.idempiere.test bundle exists since iDempiere 8, and the commands and examples on the following pages apply to iDempiere 12 and later. Details checked against the master branch (version 14) in November 2026.

In one minute​

  • Almost all automated tests are in one bundle, org.idempiere.test.
  • They are JUnit 5 tests that run inside OSGi against a real database with Garden World data. The project calls them unit tests; in industry terms they are integration tests.
  • They are skipped by default. Run them with ./mvnw verify -DskipTests=false.
  • There is no automated UI test suite in core. People test the UI by hand.
  • Releases also depend on manual testing: pull request review and Testing Days.

Read this section in order​

StepPageYou learn
1This pageThe test levels and which test to write
2Running core testsHow to run the suite and read the results
3Writing core testsHow to write a test with AbstractTestCase
4Troubleshooting core testsHow to fix a failing or missing test
5Testing pluginsHow to test your own plugin
6Manual testingHow pull requests and releases are tested by hand
7End-to-end browser testingThe state of browser tests and the Playwright plan
8Testing historyHow testing changed from 2006 to today

Test levels​

Each level below uses the usual industry name, then says what iDempiere has for it.

Static analysis​

  • Checks: code smells and security patterns, without running code.
  • In iDempiere: a SonarQube workflow in GitHub Actions, started by hand (.github/workflows/sonarqube.yml).

Unit tests​

  • Checks: one class in isolation, no database, in milliseconds.
  • In iDempiere: few. Some tests in org.idempiere.test use only plain Java and Mockito, but they run in the same OSGi suite as the rest.
  • Read: Writing core tests.

Integration tests​

  • Checks: classes working together with the database, the Application Dictionary and the login context.
  • In iDempiere: the main kind. About 150 test classes extend AbstractTestCase and run on Garden World inside a transaction that is rolled back after each test.
  • Read: Running core tests, Writing core tests.

Component (plugin) tests​

  • Checks: a plugin's own logic, its OSGi wiring and its model hooks.
  • In iDempiere: a separate test bundle per plugin, built like org.idempiere.test. There is no official template.
  • Read: Testing plugins.

API tests​

  • Checks: REST or web service requests and responses.
  • In iDempiere: no automated suite in core. Tested by hand (for example with Postman) during Testing Days. The REST API is a separate project.
  • Read: Manual testing.

End-to-end tests​

  • Checks: a user flow in the browser, from login to a completed document.
  • In iDempiere: none in core. Selenium and FitNesse were used from 2012 and moved out of core in 2019. Playwright is the proposed replacement.
  • Read: End-to-end browser testing.

Performance tests​

  • Checks: speed and load.
  • In iDempiere: a few cache tests in the performance package of org.idempiere.test. JMeter was used for ZK load tests in 2013.

Acceptance and exploratory testing​

  • Checks: a person confirms that the change does what the ticket asks.
  • In iDempiere: pull request review and Testing Days with a shared library of test cases.
  • Read: Manual testing.

Coverage​

  • Checks: how much code the tests run.
  • In iDempiere: a JaCoCo aggregate report in the coverage-report module.
  • Read: Running core tests.

The test pyramid in iDempiere​

The usual advice is many fast unit tests at the bottom, fewer integration tests in the middle and a few end-to-end tests at the top. iDempiere has a different shape:

LayerSize in iDempiereWhy
Top: end-to-endManual onlyNo browser test suite in core
Middle: integrationLargeThe PO model layer, the Application Dictionary and Env context are used everywhere, so most tests need a database
Bottom: unitThin, growingSince 2025, Mockito mockStatic replaces static lookups such as MSysConfig

When you write a test, use the lowest level that can show the bug. Use Mockito to avoid database updates where you can, and AbstractTestCase when the logic needs real records.

Which test should I write?​

Your changeWriteBase class
Core bug fix in model, process, accounting, costing or utility codeA test in org.idempiere.test that fails before the fix and passes after itAbstractTestCase
New core business logicTests in the matching org.idempiere.test packageAbstractTestCase
Pure Java logic with no iDempiere classes loadedA plain JUnit 5 test, with Mockito for collaboratorsnone
A plugin: model validator, event handler, process, factoryA test bundle for the pluginAbstractTestCase for code that saves records
A ZK UI change onlyUsually no automated test. Write the manual test steps in the pull request

Before you open a pull request, all existing tests must still pass, and the pull request template asks which tests you added and ran. See How to contribute and Git workflow.

Next​

Running core tests