Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Lyft Engineering 7 min read Case study easyNovice

Lastmile CLI: using a CLI to supercharge exploratory testing

Lyft Bikes and Scooters' approach to end-to-end exploratory testing of hardware-dependent flows went through four stages. First came a physical "station in a box" tied to production. Then a station simulator that was too complex to set up, then one-off Python CLIs that faked legacy webhooks but required knowing internal implementation details and hand-typing IDs and coordinates. The team finally built lastmile-cli on top of Lyft's interactive TypeScript lyft-dev-cli. It runs locally, polls ride state and offers only valid next actions, and auto-gathers test data like no-parking-zone coordinates. The takeaway is that investing in tooling that simplifies getting systems into a testable state often pays off more than automating end-to-end tests, and here it also let PMs and designers test in staging.

Related posts

  • How AI-assisted development helped us build the new Dropbox experience

    Dropbox Tech easyNovice

    Dropbox shipped its new AI-powered experience on a fixed launch deadline by using AI coding agents to handle integration, accessibility and test work. The work included bringing web features into the Electron desktop app, partly as embedded web views for full pages and partly as directly imported React components for finer control. Shared React components talk to platform-specific adapters, so each app keeps its own auth, navigation and networking. Agents worked from a written plan agreed with an engineer, ran builds and tests locally, and logged results for review, which delivered 22 accessibility features and retired a legacy file list's tests through 53 tasks finished in one week.

  • Building an End to End load test automation system on top of Kubernetes

    Zalando Engineering mediumAdept

    Zalando's payments team built an automated end-to-end load testing system in its Kubernetes test cluster. A Go service, the load-test-conductor, deploys production versions of services, scales Kubernetes and ECS to production configuration, drives distributed Locust workers, then scales down and cleans up. External dependencies are mocked with Hoverfly, chosen after comparing several tools, and Skipper header-based routing lets shared services switch to mocks for load-test traffic. A feedback algorithm adjusts Locust user count and hatch rate each minute to hit a target orders-per-minute KPI. Tests run on a CronJob or via an API call. Results are still judged manually from Grafana dashboards and SLO alerts, and keeping the test environment production-like took the most effort, including mid-test deployments and mismatched infrastructure.

  • How we raised mobile end-to-end test stability to 98%

    Shopify Engineering mediumAdept

    Shopify rebuilt its mobile end-to-end test framework as an opinionated wrapper over Appium, raising test stability from 50% to 98% and returning the suite to blocking PR checks. The wrapper exposes a small builder-style API where every action must carry an assertion that is validated as false before the step and true after. Escape hatches like custom timeouts and Test IDs are prefixed UNSAFE_. Elements are located visually rather than through the view hierarchy: PaddleOCR finds text, and OpenCV matches grayscale Polaris SVG icons, including color-inverted variants and multiple sizes, using adjacency to tell duplicates apart. Annotated run videos, a single CLI for local and remote device-farm runs, and a pre-promotion gate that reruns new tests before admitting them to CI round out the approach.

  • How we migrated our acceptance tests to use Synthetic Monitoring

    Datadog Engineering mediumAdept

    Datadog's Frontend Developer Experience team replaced a flaky, hand-scripted Puppeteer acceptance test suite (565 tests, 100k lines, 6 CI jobs, 35 machine-minutes per commit) with recorded Synthetic Monitoring tests run from CI via a new CLI, synthetics-ci, later generalized into datadog-ci. The CLI discovers *.synthetics.json files, applies config overrides, triggers tests, polls result IDs and prints readable output. The year-long migration across 300 engineers in one monorepo relied on documentation, presentations, hands-on help for the heaviest test owners, a non-blocking CI job that posted failures as PR comments, and per-test Jira tracking before the pipeline was made blocking.

  • Mobile Developer Experience at Slack

    Slack Engineering mediumAdept

    A dedicated mobile Developer Experience team grew from 3 to 8 engineers and cut CI feedback time and failure rates by targeting the pain points that surveys, NPS and metrics like time to merge showed hurt developers most. iOS test time fell from about 50 minutes to an average of 9 by moving from Xcodebuild to Bazel with disk caching and bazel-diff, so only affected targets are tested. On Android, test sharding (in-house Fuel, later Flank) cut runs from 50+ minutes to under 20, and replacing Calabash with Espresso took suites from ~350 to ~60 minutes. Further gains came from auto-suppressing flaky tests (failure rate 57% to 4%), migrating from Jenkins to Buildkite (CI stability ~87% to 95%, TTM down 41%), generating Xcode projects with Xcodegen to avoid merge conflicts, and adopting a merge queue.

The quest for software engineering knowledge.

Look:
Layout: