MOTIS

02 / Work · Automotive

One analyst’s spreadsheet, rewritten as a test suite

A federal efficiency standard put a penalty-and-credit balance on every vehicle sold. The only check on the figure lived in a spreadsheet one person understood.

Client
Australian automotive distributor
Capabilities
Workflow automation · Data engineering
Status
Delivered

01 / Context

A federal efficiency standard put a penalty-and-credit balance on every vehicle the distributor sold. The figure that goes to the regulator comes from a warehouse model.

02 / Problem

That figure was checked against a spreadsheet one analyst had built and one analyst understood. The check worked, and nobody else could run it. A regulator would be the next to find out if it stopped.

03 / Architecture

The spreadsheet became a written specification first, so the rules could be argued about in words. Each rule in the specification then became an assertion against the warehouse.

The suite runs where the data is, in a notebook on the platform, so it needs nobody’s laptop. The test register and the daily status update are generated from the suite, so the paperwork cannot drift from the tests.

Fig. 02 · Process, before and afterAutomotive

Before

SystemWarehouse model
PersonOne analystchecks against a private spreadsheet
OutputFigure to regulator

After

SystemWarehouse model
CheckTest suiteone assertion per rule
SystemGenerated registerand daily status
OutputFigure to regulatorsign-off points at a run

04 / Implementation

I sat with the analyst and wrote down every rule applied by hand. Each one became a test that fails loudly when the warehouse and the rule disagree.

User acceptance ran off the same suite, and sign-off pointed at a run.

05 / Outcome

The check no longer depends on one person or one file. The support team runs the suite without me, and a self-service reporting layer sits over the verified models.

06 / Technical details

Platform
Microsoft Fabric warehouse and notebooks
Tests
Rule-per-assertion suite generated from a written specification
Handed over
The suite, the register it produces, the reporting layer, and a handover the support team runs

Is this the shape of your problem?