Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proof of Concept - RFC] Use of RedHat UI testing framework vscode-extension-tester #30

Merged
merged 8 commits into from
Dec 13, 2024

Conversation

bwieger-atlassian-com
Copy link
Collaborator

@bwieger-atlassian-com bwieger-atlassian-com commented Dec 12, 2024

Motivation
We need a way to confirm that our future changes does not break key customer workflows in the UI.

So, we need to have some sort of UI testing framework.

There are 3 frameworks under consideration:

  1. @vscode/test-cli & @vscode/test-electron
  2. wdio-vscode-service
  3. vscode-extension-tester

This PR explores (3) vscode-extension-tester from Redhat

Changes

  1. Dependency for vscode-extension-tester
  2. Ignoring of generated files
  3. Mocha Config
  4. Register of npm run command for test:ui
  5. A simple test file

How was this tested

  1. Ran "npm run test:ui"
  2. [TODO] Packaged a ran extension and walked through manual test plan

Some issues to resolve:

  1. TS files still not supported
  2. It's not headless
  3. npm run test:ui is not part of the CI, yet

Copy link
Member

@sdzh-atlassian sdzh-atlassian left a comment

Choose a reason for hiding this comment

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

Ship it! 🚢🚢🚢 Gotta squash and merge though - otherwise commits are WIP

@sdzh-atlassian sdzh-atlassian merged commit a749c41 into main Dec 13, 2024
2 checks passed
@sdzh-atlassian sdzh-atlassian deleted the redhat-ui-test-axon-32 branch December 13, 2024 01:54
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.

2 participants