From fbc5102b25be411e938abe0277eee66c7891def8 Mon Sep 17 00:00:00 2001 From: PJ Date: Sat, 15 Aug 2026 20:46:47 +0530 Subject: [PATCH] chore(make): a target that runs folio's unit tests --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 46ad520..a6607fa 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ WEB_DIST := replay-ui/dist GOLINES := $(shell $(GO) env GOPATH)/bin/golines -.PHONY: bootstrap proto sidecar sidecar-embed sanderling sanderling-web sanderling-android sanderling-ios install test test-go test-browser test-companion test-kotlin test-spec-api test-ci-scripts spec-typecheck web-test web-typecheck web-build web-dev replay-dev docs clean release-cli release-npm-dry fmt fmt-go fmt-kotlin fmt-ts fmt-swift +.PHONY: bootstrap proto sidecar sidecar-embed sanderling sanderling-web sanderling-android sanderling-ios install test test-go test-browser test-companion test-kotlin test-folio test-spec-api test-ci-scripts spec-typecheck web-test web-typecheck web-build web-dev replay-dev docs clean release-cli release-npm-dry fmt fmt-go fmt-kotlin fmt-ts fmt-swift bootstrap: $(GO) mod download @@ -145,6 +145,14 @@ test-companion: $(COMPANION_EMBED) $(RUNNER_EMBED) test-kotlin: ANDROID_HOME=$(ANDROID_HOME) $(GRADLE) :sidecar:test +# folio is its own gradle build, so nothing in the root build runs its tests. +# Kept out of `test` because the metro plugin folio compiles with needs a 21+ +# runtime, where the sidecar toolchain pins 17: folding this in would raise the +# JDK floor of the target everyone runs constantly. CI runs it as its own step. +test-folio: + cd examples/folio && ANDROID_HOME=$(ANDROID_HOME) $(GRADLE) \ + :core:testDebugUnitTest :app:shared:testDebugUnitTest + # The CI scripts that read a trace and decide whether a green leg is # evidence. bash and python3 only, which is all a runner has. test-ci-scripts: