Skip to content

Commit b65e7d5

Browse files
authored
Forbid running tests with .only in CI (#802)
Forbid running tests with `.only` in CI
1 parent c27b60c commit b65e7d5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/suite/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export function run(): Promise<void> {
2222
ui: "tdd",
2323
color: true,
2424
timeout: 3000,
25+
forbidOnly: process.env["CI"] === "1",
2526
});
2627

2728
const testsRoot = path.resolve(__dirname, "..");

test/suite/testexplorer/XCTestOutputParser.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
} from "../../../src/TestExplorer/TestParsers/XCTestOutputParser";
2121
import { TestRunState, TestStatus } from "./MockTestRunState";
2222

23-
suite.only("XCTestOutputParser Suite", () => {
23+
suite("XCTestOutputParser Suite", () => {
2424
suite("Darwin", () => {
2525
const outputParser = new XCTestOutputParser(darwinTestRegex);
2626

0 commit comments

Comments
 (0)