Sandbox to Production: Deployment Testing

Configuration that passed every test in sandbox can still fail in production, and the reasons are predictable. What deployment testing has to cover before you promote anything.

Deployment testing is the work of proving that configuration validated in a lower environment behaves identically once promoted to production. It sits between functional testing, which asks whether the configuration is correct, and go-live, which assumes it is. On configured legal platforms the gap between those two questions is where a surprising proportion of production incidents originate, and this article covers what deployment testing has to cover before anything gets promoted.

What is deployment testing?

Deployment testing verifies that a configuration package moves cleanly from one environment to another and produces the same behavior on arrival. For context, research put the cost of poor software quality in the US at $2.41 trillion in 2022. It tests the move itself alongside the configuration, which is a distinction most test plans omit.

Three questions define the scope.

  • Did everything arrive? Every rule, form, workflow, and permission in the package exists in the target environment.
  • Does it behave the same? The configuration produces identical outcomes against equivalent data.
  • Did anything else change? Existing functionality in the target environment still works.

That third question is the one teams skip. A promotion can succeed on its own terms while breaking something already live, and nothing in the package itself reveals that.

Why do sandbox and production environments diverge?

Sandbox and production environments diverge because they are maintained separately and accumulate differences that nobody records. The divergence is rarely deliberate, and it is almost always discovered during a failed promotion.

Four sources of divergence recur on legal platform deployments.

  • Data. Sandbox holds a subset, often anonymised, often smaller by orders of magnitude.
  • Integrations. Lower environments frequently point at test endpoints or have connections disabled entirely.
  • Users and permissions. Real security groups, delegations, and out-of-office rules exist only in production.
  • Manual changes. Someone fixed something directly in one environment and the other never received it.

The dependency risks this creates are covered in the hidden dangers of packaging enterprise workflows for production.

What should deployment testing cover before promotion?

Deployment testing should cover the package contents, the behavior after arrival, and the existing functionality around it. Each needs its own set of checks, and the third is the one that protects live users.

A workable pre-promotion set covers five areas.

  • Package completeness. Every intended component is present and no unintended component travelled with it.
  • Smoke tests on core paths. The handful of workflows that matter most run end to end immediately after promotion.
  • Regression on adjacent functionality. Anything sharing a rule, field, or workflow with the change gets exercised.
  • Permission verification. Access behaves correctly for real security profiles, since these differ from sandbox.
  • Integration confirmation. Each connected system responds as expected against production endpoints.

Permission testing deserves emphasis on legal platforms because matter and invoice data is confidential and access varies by matter, practice area, and region. The reasoning is set out in why skipping role-based security testing breaks go-lives.

Why is testing alone insufficient?

Testing alone is insufficient because each individual form of testing catches only a fraction of the defects present, which caps how much any test-only approach can achieve. This is one of the better-established findings in software quality research.

Capers Jones, whose work established defect removal efficiency as a quality measure, found that high levels of defect removal cannot be achieved using testing alone, and that pre-test inspections and static analysis are necessary to exceed 95 percent removal. His research put the US average at roughly 85 percent of defects removed before delivery, with best-in-class projects topping 99 percent.

The transfer to configured platforms is direct. A configuration review before promotion, where a second person examines the rules and their interactions on paper, catches a category of defect that execution-based testing misses. Reviewing the package contents against the change request costs an hour and finds the components that should not have travelled.

What should a promotion gate require?

A promotion gate should require evidence, with every item on it answerable by a yes or a no.

Seven conditions cover most deployments.

  • All planned tests executed with results recorded somewhere durable.
  • No open critical or high severity defects against the change.
  • Deferred defects documented and formally accepted by the business owner.
  • Retesting complete for every defect fix included in the package.
  • Package contents reviewed against the change request by a second person.
  • Rollback approach confirmed, including whether clean reversal is possible.
  • Support arrangements in place for the period after promotion.

The rollback item deserves specific attention on configured platforms, since reversing a configuration change is frequently harder than reversing code. Where clean reversal is impossible, that fact belongs in the plan before promotion with a forward-fix approach agreed.

How is deployment quality measured?

Deployment quality is measured by defect escape rate, meaning the proportion of defects that reach production instead of being caught before it. The calculation is straightforward and the discipline is in applying it consistently.

Jones described the method plainly: accumulate the count of defects found before release alongside those reported by users in the first ninety days, and the ratio gives the removal efficiency. A team finding ninety defects that then receives ten reports from users has achieved ninety percent.

Two adaptations suit configured legal platforms. Weight by severity, since one Severity 1 escaping matters more than several cosmetic issues. And measure per release, because the trend across releases is what indicates whether the process is improving. The wider release discipline is covered in release management on configured legal platforms.

What happens immediately after promotion?

The period immediately after promotion is when deployment defects surface, because real users, real data, and real integrations are exercising the configuration for the first time. Planning that window keeps the team ready to respond.

Three activities belong in the first hours. Smoke tests on core paths run immediately, before users arrive. Monitoring of the specific functions the change touched, watching for errors before users report them. And a named person available who understands what was promoted and can decide quickly whether to fix forward or roll back.

Reports arriving in this period need the same triage discipline that applies at go-live, described in defect triage during hypercare.

How does deployment testing fit a legal platform program?

Deployment testing fits into a legal platform program as a repeating gate, since every subsequent release crosses the same boundary. Establishing the discipline during implementation means it already exists when the first post-go-live change arrives.

That continuity matters because the risk profile increases after go-live. During implementation a failed promotion affects a test environment. Afterwards it affects live matters, live approvals, and live invoices.

Conclusion

Deployment testing exists because configuration behaving correctly in one environment proves very little about how it behaves in another. Environments drift, production holds data and permissions that lower environments never contain, and the promotion itself can carry components nobody intended to move.

Four practices keep promotions safe. Test the move alongside the configuration, checking package completeness and adjacent functionality as well as the change itself. Add a review layer, since research on defect removal shows that testing alone cannot reach high efficiency without inspection alongside it. Define a promotion gate answerable with evidence, including whether clean rollback is actually possible. And measure escape rate per release, weighted by severity, because the trend is what tells you whether the process is working.

How Basla can help

Basla provides delivery teams for legal technology implementation, covering business analysis, configuration support, test planning and execution, documentation, and post-go-live support. On one contract lifecycle management rollout Basla created and executed over a thousand test records covering the configured paths, and has delivered legal technology services across more than a hundred jurisdictions.

Frequently asked questions

What is deployment testing?

Deployment testing verifies that a configuration package moves cleanly between environments and produces the same behavior after promotion. It covers three questions: whether everything in the package arrived, whether it behaves identically against equivalent data, and whether anything already live was affected.

Why does configuration behave differently in production than in sandbox?

Configuration behaves differently because environments diverge over time. Production holds full data volumes, live integration endpoints, real security groups and delegations, and any manual changes made directly to one environment without being replicated to the other.

What should be tested before promoting to production?

Pre-promotion testing should cover package completeness, smoke tests on core workflows, regression on any functionality sharing rules or fields with the change, permission verification against real security profiles, and confirmation that each integration responds correctly against production endpoints.

Is testing enough to prevent production defects?

Testing alone cannot reach high defect removal efficiency. Research by Capers Jones found that pre-test inspections and static analysis are necessary to exceed 95 percent removal, with the US average around 85 percent. On configured platforms, a configuration review before promotion catches defects that execution-based testing misses.

What should a promotion gate include?

A promotion gate should include evidence that planned tests were executed and recorded, that no critical or high severity defects remain open, that deferred defects were accepted by the business, that fixes were retested, that package contents were reviewed by a second person, that a rollback approach is confirmed, and that support is arranged.

How is defect escape rate calculated?

Defect escape rate compares defects found before release against those reported by users afterwards, conventionally measured over the first ninety days. A team finding ninety defects that then receives ten user reports has achieved ninety percent removal efficiency.


*This article is provided for general information only and does not constitute legal advice. Basla Solutions provides legal technology implementation and support services and does not practice law.*