• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

e7h4n / rippling / 12280135399

11 Dec 2024 03:58PM UTC coverage: 66.028% (-34.0%) from 100.0%
12280135399

Pull #20

github

e7h4n
test(devtools): let coverage report include devtools
Pull Request #20: feat(devtools): implement message communication flow for Chrome DevTools

256 of 273 branches covered (93.77%)

Branch coverage included in aggregate %.

22 of 391 new or added lines in 11 files covered. (5.63%)

984 of 1605 relevant lines covered (61.31%)

65.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/devtools/e2e/fixtures.ts
NEW
1
import { test as base, chromium, type BrowserContext } from '@playwright/test';
×
2

NEW
3
const EXTENSION_ID = 'nnocgligbafbkepiddmidebakcheiihc';
×
NEW
4
const EXTENSION_PATH = 'packages/devtools/dist';
×
5

NEW
6
export const test = base.extend<{
×
7
  context: BrowserContext;
8
  extensionId: string;
NEW
9
}>({
×
NEW
10
  context: async ({}, use) => {
×
11
    // 注意这里使用了正确的解构语法 { }
NEW
12
    const context = await chromium.launchPersistentContext('', {
×
NEW
13
      channel: 'chromium',
×
NEW
14
      args: [`--disable-extensions-except=${EXTENSION_PATH}`, `--load-extension=${EXTENSION_PATH}`],
×
NEW
15
    });
×
NEW
16
    await use(context);
×
NEW
17
    await context.close();
×
NEW
18
  },
×
NEW
19
  extensionId: async ({}, use) => {
×
20
    // 这里也需要使用解构语法
NEW
21
    await use(EXTENSION_ID);
×
NEW
22
  },
×
NEW
23
});
×
NEW
24
export const expect = test.expect;
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc