// Builds and tests the browser extension.
Builds and tests the browser extension.
// Builds and tests the browser extension .
func addBrowserExt(pipeline *bk.Pipeline) {
	for _, browser := range []string{"chrome"} {
		pipeline.AddStep(
			fmt.Sprintf(":%s: Puppeteer tests for %s extension", browser, browser),
			bk.Env("PUPPETEER_SKIP_CHROMIUM_DOWNLOAD", "true"), 
			bk.Env("EXTENSION_PERMISSIONS_ALL_URLS", "true"),
			bk.Env("BROWSER", browser),
			bk.Env("LOG_BROWSER_CONSOLE", "true"),
			bk.Env("SOURCEGRAPH_BASE_URL", "https://sourcegraph.com"),
			bk.Env("RECORD", "false"), 
			bk.Cmd("yarn --frozen-lockfile --network-timeout 60000"),
			bk.Cmd("yarn --cwd client/shared run download-puppeteer-browser"),
			bk.Cmd("yarn --cwd client/browser -s run build"),
			bk.Cmd("yarn run cover-browser-integration"),
			bk.Cmd("yarn nyc report -r json"),
			bk.Cmd("dev/ci/codecov.sh -c -F typescript -F integration"),
			bk.ArtifactPaths("./puppeteer/*.png"),
		)
	}
	pipeline.AddStep(":jest::chrome: Test browser extension",
		bk.Cmd("dev/ci/yarn-test.sh client/browser"),
		bk.Cmd("dev/ci/codecov.sh -c -F typescript -F unit"))
}
func addBrowserExt ( pipeline * bk . Pipeline ) { for _ , browser := range [ ] string { " " } { pipeline . AddStep ( fmt . Sprintf ( " " , browser , browser ) , bk . Env ( " " , " " ) , bk . Env ( " " , " " ) , bk . Env ( " " , browser ) , bk . Env ( " " , " " ) , bk . Env ( " " , " " ) , bk . Env ( " " , " " ) , bk . Cmd ( " " ) , bk . Cmd ( " " ) , bk . Cmd ( " " ) , bk . Cmd ( " " ) , bk . Cmd ( " " ) , bk . Cmd ( " " ) , bk . ArtifactPaths ( " " ) , ) } pipeline . AddStep ( " " , bk . Cmd ( " " ) , bk . Cmd ( " " ) ) }
Builds and tests the browser extension.
Builds and tests the browser extension .
// Browser extension integration tests // Don't download browser, we use "download-puppeteer-browser" script instead // ensure that we use existing recordings // Browser extension unit tests