Skip to content

Adding electron e2e test#246

Merged
azchohfi merged 13 commits intomainfrom
nmetulev/e2e-electron-test
Jan 21, 2026
Merged

Adding electron e2e test#246
azchohfi merged 13 commits intomainfrom
nmetulev/e2e-electron-test

Conversation

@nmetulev
Copy link
Member

Fixes #241

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an end-to-end test for the Electron workflow that validates the complete WinApp CLI workflow from app creation through MSIX packaging. Additionally, it extends the add-electron-debug-identity command with --no-install and --manifest options to support CI/testing scenarios.

Changes:

  • Added comprehensive E2E test script (test-e2e-electron.ps1) that creates an Electron app, initializes WinApp, creates/builds native addons, adds debug identity, and packages to MSIX
  • Extended add-electron-debug-identity command with --no-install and --manifest options for greater flexibility
  • Enhanced npm path resolution in addon utilities to work correctly in CI environments
  • Added GitHub Actions workflow job to run E2E test on every build

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
scripts/test-e2e-electron.ps1 New comprehensive E2E test script for Electron workflow with retry logic, cleanup, and detailed logging
src/winapp-npm/src/msix-utils.ts Added noInstall and manifest options to MsixIdentityOptions interface and addElectronDebugIdentity function
src/winapp-npm/src/cs-addon-utils.ts Enhanced npm path resolution to use the npm binary co-located with the running Node.js process
src/winapp-npm/src/cpp-addon-utils.ts Enhanced npm path resolution to use the npm binary co-located with the running Node.js process
src/winapp-npm/src/cli.ts Added argument parsing and help text for new --no-install and --manifest options
src/winapp-CLI/WinApp.Cli/Services/MsixService.cs Modified Developer Mode check to skip when noInstall is true
docs/usage.md Added documentation for new --manifest option
.gitignore Added test-wd/ directory to ignore list
.github/workflows/build-package.yml Added new e2e-test job that runs after build completion

nmetulev and others added 3 commits January 21, 2026 14:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Jan 21, 2026

@nmetulev I've opened a new pull request, #249, to work on those changes. Once the pull request is ready, I'll request review from you.

@azchohfi azchohfi enabled auto-merge (squash) January 21, 2026 22:59
@azchohfi azchohfi merged commit 3d19f2a into main Jan 21, 2026
8 checks passed
@azchohfi azchohfi deleted the nmetulev/e2e-electron-test branch January 21, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create an end to end test for Electron

3 participants

Comments