Design comprehensive test datasets for your project
Calculate expected outputs before running tests
Test edge cases: missing data, extreme values, and boundary conditions
Use Analytics and Data Inputs views to validate results
Testing a production accounting project isn’t just about running the pipeline and seeing if it works. You need pre-calculated expected outputs, systematic edge case coverage, and a clear process for validating every result.
Before running the pipeline, calculate the expected output for each test scenario by hand or in a spreadsheet. This is critical — without expected values, you can’t tell if the output is correct.
1
Set up a spreadsheet
Create a spreadsheet with columns for each input value and each intermediate/final calculation. Include all 5 steps from your Module 2 model plus the LCA calculations from Module 3.
2
Enter your test data
Fill in the test values for each event. Calculate each intermediate value step by step, exactly as your model should.
3
Calculate batch-level outputs
For each batch (delivery), compute: gross carbon, allocated emissions (proportional + direct), and net carbon.
4
Compute ledger totals
Sum all batch outputs per ledger. Verify that ledger balances reconcile (inputs = outputs + inventory changes).
Example spreadsheet layout:
Delivery
Mass (t)
Carbon %
Gross tCO2e
Alloc. Elec
Alloc. Propane
Transport
Net tCO2e
DEL-001
3
80%
8.81
1.25
0.61
0.11
6.84
DEL-002
5
78%
14.31
2.09
1.02
0.14
11.06
DEL-003
4
82%
12.04
1.67
0.82
0.13
9.42
DEL-004
2
79%
5.80
0.83
0.41
0.09
4.47
Total
14
40.96
5.84
2.86
0.47
31.79
The numbers above are illustrative — your actual values will depend on your model structure and emission factors. The point is to have a reference table before you run the pipeline, so you can compare against the results.
For each edge case, follow this pattern:Edge cases to test for Mangrove Biochar:
Edge Case
Expected Behavior
Moisture = 50%
Dry mass is halved; all downstream values proportionally reduced
H:C ratio = 0.75
Permanence factor = 0.7 (lowest tier); net carbon is lower
Mass = 0.5 t
Very small batch; emissions may be a large proportion of gross carbon
Distance = 0 km
Transport emissions = 0; only shared emissions allocated
Carbon content = 95%
High carbon; verify no overflow or rounding errors
Document each edge case test and its result. This becomes your test suite — when you modify the model later, you can re-run these tests to catch regressions.
Why should you calculate expected outputs before running the pipeline?
Without pre-calculated expected values, you have no way to verify if the pipeline output is correct — only that it runs without errors. A pipeline can produce wrong numbers silently. Pre-calculated values give you a reference to compare against, catching formula errors, unit mismatches, and configuration problems.
What are the 3 types of test scenarios you should create?
Happy path (normal operations with typical values), edge cases (unusual but valid values that test boundaries), and error cases (invalid data that should be caught by validation). Together these cover the range of inputs your project might encounter in production.