Skip to content

Tests

This page lists all automated tests included in the main repository. Each test validates a specific aspect of payroll behaviour — calendars, payrun calculation, retro pay, regulation inheritance, collectors, case data, and reports.

Tests are JSON files executed via the Payroll Console. They can be run individually or all at once:

# Run all tests
Tests/Test.all.pecmd

# Run a single test
<Test>/Test.pecmd

Tests marked with ⭐ are particularly useful as starting points or reference implementations.

For test methods, JSON formats, and authoring guidance see Payroll Testing.

Payrun Tests

Calendar

Test Description
Calendar Calendars test
LunisoralCalendar Lunisolar calendar test
WeekCalendar Week calendar test

Payrun

Test Description
Payrun Payrun test
PayrunActions Payrun actions test
PayrunEdge Payrun date boundary and temporal edge cases test
IncrementalPayroll Incremental payrun results test
WageTypeRestart Payrun with wage calculation restart test
ForecastPayroll Forecast test

Retro

Test Description
RetroPayroll Retro payrun job test
RetroManualPayroll Manual retro payrun job test
RetroPayMode retroPayMode None vs. ValueChange — controls whether retro sub-runs are created

Regulation

Test Description
DerivedPayroll Derived regulations test
CountryPayroll Country specific function test
VersionPayroll Payroll versions test

Collector

Test Description
Collector Collector features test: multi-source accumulation, maxResult, minResult, negated
Aggregation Period values aggregation types test

Case & Data

Test Description
Cancellation Case cancellation types test
TimeTracking Time tracking test
WageTracingPayroll Wage calculation traceability via clusterSetWageTypePeriod

Payrun Employee Tests

Test Description
PayrunEmployee Payrun employee test

Case Tests

Test Description
Case Simple case test

Report Tests

Test Description
Report Report data test