-
Notifications
You must be signed in to change notification settings - Fork 501
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
Improve Test Suite #1164
Comments
I believe at minimum we should run end-to-end tests for adding files and directories via Web UI in specific environments. The test matrix would be to test adding files in each runtime (browsers + ipfs-desktop) against each implementation:
Sidenotes:
|
I am taking a look at this today. |
@lidel cool, let me know of any progress you made. I was also thinking of tackling E2E tests on this |
I've tried to see how things look like when we add aegir (for running tests in different runtimes). Current StateThings get complicated fast, because aegir requires tests written in Mocha and Karma for browser tests (Firefox, Chrome, Electron), while Web UI uses Jest for tests and Puppeteer for end-to-end tests in Chrome. End-to-end options these days seem to be limited to (A) Move to Mocha/KarmaIMO does not make much sense, refactoring cost may be high and projects usually go in the opposite direction: Jest is believed a successor to Mocha-based tests. (B) Stay with Jest, improve Puppeteer setupStay with Jest & Puppeteer. We could replace manual
(C) Something else?Something heavier, like Cypress? Next Steps
Sidenotes:
|
#1353 got merged, we use puppeteer with Chromium. |
Running WebUI E2E tests on every PR in go-ipfs and js-ipfs reposEnd to end tests (#1353) are now run as a part of test suites of go-ipfs (ipfs/kubo#6825) and js-ipfs (ipfs/kubo#6825) that run on every PR. The goal of this is to detect ipfs-webui regressions between known stable version of IPFS daemon and a developer version as soon as possible. The way it works:
This way, we detect changes to go-ipfs or js-ipfs that could impact ipfs-webui before they land in respective Whats next?E2E tests could be improved by running them against Firefox and Webkit. Tests are simple, so switching to https://github.com/microsoft/playwright may be worth evaluating:
|
Running E2E against Firefox should be possible even without switching to Playwright, |
We should aim to improve the test suite and make it more throughout. There should be E2E tests with both
go-ipfs
andjs-ipfs
implementations to catch eventual differences in both implementations.This is a draft issue.
The text was updated successfully, but these errors were encountered: