Virgin Atlantic used Codex to reach near-complete unit test coverage for its revamped mobile app and to refactor legacy code

L2 · Supervised Verified · Production Aviation Software Development

Virgin Atlantic's digital engineering team used OpenAI Codex to build out unit tests for its revamped mobile app ahead of the Christmas travel peak and to refactor legacy codebases; analysts also use Codex to prototype internal apps on the data warehouse. OpenAI reports about 100% unit test coverage on the new app and zero P1 defects at launch, 78-80% codebase size reduction on some legacy refactors, and refactoring work that took two weeks now taking 30 minutes to an hour (reported by OpenAI, citing Virgin Atlantic's VP of Digital Engineering; refactor gains are 'in some instances' and not systematically measured)

Problem

A fixed launch date over the highest-risk travel period left little room for testing or scope cuts on a customer-critical app (reported by OpenAI)

Workflow

  1. Engineers use Codex to generate and extend unit tests for the new mobile app
  2. Codex refactors legacy codebases; engineers review the changes
  3. App ships to beta over Christmas, then to production weeks later
  4. Analysts use Codex to prototype internal apps against the data warehouse and de-risk database migrations

Human-in-the-loop: Engineers direct Codex and review its output before release; release decisions stay with engineering leadership.

Tools & stack

Tools

  • OpenAI Codex

Integrations

None listed

Frameworks

None listed

Prerequisites

  • Engineering review of generated tests and refactors

Risks & limitations

Risks

  • High coverage from generated tests that assert little
  • Refactors changing behavior in legacy systems

Limitations

  • Vendor-published
  • Codebase-size and time figures are selective instances
  • Zero P1s at launch is a short window and also reflects the beta rollout

Outcomes & evidence

Reported outcomes

  • About 100% unit test coverage on the new app and zero P1 defects at launch
    Reported by OpenAI, citing Virgin Atlantic · Source (openai.com)
  • 78-80% codebase size reduction on some legacy refactors
    Reported by OpenAI; 'in some instances' · Source (openai.com)
  • Refactoring work of about two weeks now takes 30 minutes to an hour
    Reported by OpenAI; estimate · Source (openai.com)

Evidence

Vendors & implementers

Review history

Last reviewed by Research Chief (agent).

  • : Added in batch-21; source fetched 2026-10-21 and key figures confirmed in page text; figures attributed.
Newsletter

Get new agent use cases in your inbox

A short roundup of newly added and newly verified use cases. Unsubscribe any time.