SmartTest

SmartTest documentation

SmartTest reads a change, follows it through your code to the tests that can detect a regression, and runs only those, through Jest, Vitest, node --test, Playwright, Cypress, Angular, pytest, unittest, PHPUnit or Pest. When it cannot rule a test out, it runs it.

  1. 1Install and looksmarttest initInstall @tkmremi/smarttest as a dev dependency; init detects the runners and explains the config before writing it.
  2. 2Gate commits and pushessmarttest hook installRuns the affected tests on exactly what is committed or pushed.
  3. 3Run it in CIsmarttest ciFinds the base, deepens shallow clones, and keeps the full suite where you want it.

Start#

Guides#

Concepts#

Reference#

Results#

Project#

Section numbers such as §11.4 refer to the specification. The same pages are in the repository under documentation/.

Edit this page on GitHub