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

Make newTestSetup rely on modulestest #59

Merged
merged 5 commits into from
Jan 15, 2024
Merged

Conversation

oleiade
Copy link
Member

@oleiade oleiade commented Jan 12, 2024

This PR addresses #57 and modifies the newTestSetup helper to use modulestest.NewRuntime under the hood. This simplifies the test setup greatly, and delegates parts of the runtime setup to the core module.

⚠️ we should merge this after #58 to benefit from the linter issues fix ⚠️

@oleiade oleiade self-assigned this Jan 12, 2024
@oleiade oleiade requested a review from a team as a code owner January 12, 2024 16:24
@oleiade oleiade requested review from mstoykov and codebien and removed request for a team January 12, 2024 16:24
webcrypto/crypto_test.go Outdated Show resolved Hide resolved
webcrypto/test_setup.go Outdated Show resolved Hide resolved
"go.k6.io/k6/lib"
"go.k6.io/k6/lib/testutils/httpmultibin"
"go.k6.io/k6/metrics"
"gopkg.in/guregu/null.v3"
Copy link
Contributor

Choose a reason for hiding this comment

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

Dropping this dependancies is breaking the ci - running go mod tidy will fix it.

webcrypto/crypto_test.go Outdated Show resolved Hide resolved
webcrypto/crypto_test.go Outdated Show resolved Hide resolved
webcrypto/crypto_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@mstoykov mstoykov left a comment

Choose a reason for hiding this comment

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

LGTM!

Left some nits if there is time

@oleiade oleiade merged commit 82b9c8e into main Jan 15, 2024
10 checks passed
@oleiade oleiade deleted the fix/57_use_modulestest_for_test branch January 15, 2024 11:58
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.

3 participants