This post was rewritten in November 2026. It used to describe evaluation pipelines and service levels that do not apply to Truckthrust. What matters most in our product is something more specific: a rule engine that checks every planning move against transport law. If it lets an illegal plan through, the dispatcher has no reason to trust it. This is how we test it.
Rules as code, one clause at a time
The rule engine encodes Regulation 561/2006 on driving and rest times, Regulation 1072/2009 on cabotage, Directive 2020/1057 on the posting of drivers, and the national variants of all 27 Member States. We keep these rules as a versioned ruleset, where each rule refers to the article it implements and, where relevant, to court decisions that shape how it is applied.
Keeping rules small and traceable is what makes them testable. A rule such as the 90-hour limit on driving in two consecutive weeks is kept as one rule with one clear meaning, not as a condition hidden inside a planning algorithm.
A unit test for every clause
Every rule has unit tests that cover the case where it holds, the case where it is broken, and the edge where it switches. For driving and rest rules, the edges are where the mistakes happen: the second 10-hour day in a week, the third reduced daily rest, a weekly rest that starts at the end of the sixth 24-hour period, a cabotage operation whose unloading falls exactly on the seventh day.
When the law changes, as it did with the Mobility Package, or when national enforcement practice shifts, the rule changes in one place, its tests change with it, and the version history shows what changed and why.
1,500 synthetic planning weeks
Unit tests check rules one at a time. A real week plan combines dozens of rules for several drivers and trucks at once. To test the combinations, we generated 1,500 synthetic planning weeks and ran the planner on them. In that internal test, the solver generated no plan that broke a rule.
Synthetic weeks are not reality, and we do not present them as such. Real-world validation continues in live operation, and a structured multi-fleet pilot is the next step.
Plans that are broken on purpose
The opposite test matters just as much: does the engine catch a plan that is wrong? A useful method here is fault injection. You take a valid plan, change one thing, such as moving a rest an hour later, adding a fourth cabotage operation, or shortening a weekly rest below 24 hours, and check that the engine blocks the move and names the right rule.
The message matters as much as the block. A dispatcher who sees “blocked” without a reason will work around the tool. A dispatcher who sees which rule would be broken can fix the plan.
Why we test in the board, too
The rule engine is not a separate checker that runs after planning. In Truckthrust it runs on every drag, drop and swap on the Kanban board, before the card lands. That means the same rules, and the same tests, protect every interaction a dispatcher makes.
Sources
- Regulation (EC) No 561/2006 on driving times, breaks and rest periods (EUR-Lex)
- Regulation (EU) 2020/1054 amending Regulation 561/2006 (Mobility Package I) (EUR-Lex)
- Regulation (EC) No 1072/2009 on access to the international road haulage market (EUR-Lex)
- Regulation (EU) 2020/1055 amending Regulations 1071/2009 and 1072/2009 (EUR-Lex)
- Directive (EU) 2020/1057 on posting of drivers in road transport (EUR-Lex)
This article is general information, not legal advice. Check the official texts for your specific situation.



