# How to run fewer tests and speed up CI with CircleCI Smarter Testing

DevFeed: [How to run fewer tests and speed up CI with CircleCI Smarter Testing](<https://devfeed.tech/articles/how-to-run-fewer-tests-and-speed-up-ci-with-circleci-smarter-testing-96424.md>)

Original publisher: [Read original article](<https://circleci.com/blog/run-fewer-tests-speed-up-ci-smarter-testing/>)

Author: Roger Winter

Published: 2026-10-22T19:00:00Z

Content type: tutorial

Language: en

Sources: [CircleCI](<https://devfeed.tech/sources/the-circleci-blog-feed-circleci.md>)

Topics: [test impact analysis](<https://devfeed.tech/topics/test-impact-analysis.md>), [auto rerun failed tests](<https://devfeed.tech/topics/auto-rerun-failed-tests.md>), [CircleCI](<https://devfeed.tech/topics/circleci.md>), [dynamic test splitting](<https://devfeed.tech/topics/dynamic-test-splitting.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Integration testing](<https://devfeed.tech/topics/integration-testing.md>)

Tags: [agent-skills](<https://devfeed.tech/tags/agent-skills.md>), [api](<https://devfeed.tech/tags/api.md>), [auto-rerun-failed-tests](<https://devfeed.tech/tags/auto-rerun-failed-tests.md>), [ci](<https://devfeed.tech/tags/ci.md>), [circleci](<https://devfeed.tech/tags/circleci.md>), [circleci-cli](<https://devfeed.tech/tags/circleci-cli.md>), [circleci-news](<https://devfeed.tech/tags/circleci-news.md>), [circleci-testsuite](<https://devfeed.tech/tags/circleci-testsuite.md>), [cli](<https://devfeed.tech/tags/cli.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [compute-costs](<https://devfeed.tech/tags/compute-costs.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [cypress](<https://devfeed.tech/tags/cypress.md>), [dynamic-test-splitting](<https://devfeed.tech/tags/dynamic-test-splitting.md>), [engineering-productivity](<https://devfeed.tech/tags/engineering-productivity.md>), [flaky](<https://devfeed.tech/tags/flaky.md>), [flaky-tests](<https://devfeed.tech/tags/flaky-tests.md>), [retry](<https://devfeed.tech/tags/retry.md>), [smarter-testing](<https://devfeed.tech/tags/smarter-testing.md>), [test-impact-analysis](<https://devfeed.tech/tags/test-impact-analysis.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

## AI overview

CircleCI Smarter Testing uses test coverage to run tests affected by a change, retries failed test files within the same job, and dynamically splits work across parallel nodes. Setup requires test suites with discovery and run commands, JUnit reports containing test file paths, and-- for impact analysis--a runner coverage plugin plus full-test-run paths for shared configuration and setup files. In the TypeScript/Jest example, one-file changes reduced the median unit test step from 16.4 to 6.4 seconds across 12 paired runs; mean executor time per pull request fell from 120 to 84 seconds. Selection still caught an integration regression, while a separate demonstration reports 44 of 9,716 tests selected and runtime dropping from 3:56 to 22 seconds. Impact analysis and auto rerun are paid features counted by discovered test atoms; static timing-based splitting through the CLI is free. Keep auto rerun limits low and fix pass-on-retry failures, since real race conditions can appear flaky. Coverage only reflects code executed in tests, so the example retains a type check or build on every commit. Figures are specific to the described examples and benchmarks.

## Source excerpt

Set up CircleCI Smarter Testing on a TypeScript app: run only the tests a change affects, auto-retry flaky tests, and measure the CI time you save.