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

Implement common test interface for all types of tests (e2e, fixtures, integration) #6863

Open
RamIdeas opened this issue Sep 30, 2024 · 0 comments
Labels
maintenance Maintenance task

Comments

@RamIdeas
Copy link
Contributor

Our current tests are written differently. This requires a contributor to know the 3 different interfaces, separate utilities, and why they'd write one over the other, ...

The reason you write each kind is also blurred eg. in tmp dir? programmatically builds the test case code? requires fixture on disk? requires npm packages? console.log mocks? stdout/stderr assertions? network mocking? module mocking? remote API access? separate process interop?

We should find a common abstraction for each test with a common interface, common output, common utilities and explicit configuration for what the test needs (requires module mocking? requires network mocking? requires actual remote API?) that allows us to script when+how a test runs

As a starter point, the common interface should look something like the WranglerE2ETestHelper class

@RamIdeas RamIdeas added the maintenance Maintenance task label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance task
Projects
Status: Backlog
Development

No branches or pull requests

1 participant