New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@posit-dev/positron-test-electron

Package Overview
Dependencies
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@posit-dev/positron-test-electron

Download a real Positron build and run @vscode/test-electron-style extension-host integration tests against the live positron.* API.

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
1.8K
355.19%
Maintainers
5
Weekly downloads
 
Created
Source

@posit-dev/positron-test-electron

Download Positron and run @vscode/test-electron-style extension-host integration tests against the live positron.* API without building Positron from source.

Supports macOS (darwin-arm64, darwin-x64), Windows (win32-x64, win32-arm64), and Linux (linux-x64, linux-arm64).

Windows/Linux caveat: channel: 'daily' and pinned versions work today. The latest channel: 'stable' is not available yet — the first stable release built from the new archive workflow has not been cut. Until then, use daily or pin a version on Windows/Linux. (macOS stable works.) See issue #2.

Install

npm install --save-dev @posit-dev/positron-test-electron

Usage (programmatic)

import * as path from 'path';
import { runTests } from '@posit-dev/positron-test-electron';

async function main() {
  const code = await runTests({
    channel: 'daily', // or 'stable'; or pin: version: '2026.08.0-365'
    extensionDevelopmentPath: path.resolve(__dirname, '../../'),
    extensionTestsPath: path.resolve(__dirname, './suite/index.js'),
  });
  process.exit(code);
}
main();

Usage (CLI)

npx positron-test-electron \
  --channel daily \
  --extension-development-path . \
  --extension-tests-path ./out/test/index.js

Options

OptionCLI flagDefaultMeaning
channel--channeldailystable → releases, daily → dailies
version--versionlatestexact pin, e.g. 2026.08.0-365 (reproducible CI)
platform--platformhostdarwin-arm64 | darwin-x64 | win32-x64 | win32-arm64 | linux-x64 | linux-arm64
cachePath--cache-path.positron-testcache root
extensionDevelopmentPath--extension-development-path—required
extensionTestsPath--extension-tests-path—required
disableExtensions--enable-extensions (sets false)trueisolate the extension under test; set false when tests need other extensions
launchArgsafter --see belowmerged after the defaults

Default launch args: --disable-extensions --skip-welcome --skip-release-notes, plus a fresh temp --user-data-dir. When disableExtensions is false, --disable-extensions is omitted so Positron's bundled extensions (language runtimes, notebook export, etc.) load alongside the extension under test.

FAQs

Package last updated on 12 Aug 2026

Related posts