mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
* Build enterprise coder binary by default Signed-off-by: Spike Curtis <spike@coder.com> * Add --agpl to develop.sh Signed-off-by: Spike Curtis <spike@coder.com> * Add --agpl flag to archive.sh Signed-off-by: Spike Curtis <spike@coder.com> * shell format Signed-off-by: Spike Curtis <spike@coder.com> * Move AGPL back to LICENSE, explain enterprise license is forthcoming Signed-off-by: Spike Curtis <spike@coder.com> Signed-off-by: Spike Curtis <spike@coder.com>
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import { PlaywrightTestConfig } from "@playwright/test"
|
|
import * as path from "path"
|
|
import { basePort } from "./constants"
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
testDir: "tests",
|
|
globalSetup: require.resolve("./globalSetup"),
|
|
|
|
// Create junit report file for upload to DataDog
|
|
reporter: [["junit", { outputFile: "test-results/junit.xml" }]],
|
|
|
|
// NOTE: if Playwright complains about the port being taken
|
|
// do not change the basePort (it must match our api server).
|
|
// Instead, simply run the test suite without running our local server.
|
|
use: {
|
|
baseURL: `http://localhost:${basePort}`,
|
|
video: "retain-on-failure",
|
|
},
|
|
|
|
// `webServer` tells Playwright to launch a test server - more details here:
|
|
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
|
|
webServer: {
|
|
// Run the coder daemon directly.
|
|
command: `go run -tags embed ${path.join(
|
|
__dirname,
|
|
"../../enterprise/cmd/coder/main.go",
|
|
)} server --in-memory`,
|
|
port: basePort,
|
|
timeout: 120 * 10000,
|
|
reuseExistingServer: false,
|
|
},
|
|
}
|
|
|
|
export default config
|