Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: move workspace apps tests to new package#7025

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 3 commits intomainfromdean/workspaceapps-test
Apr 6, 2023

Conversation

deansheather
Copy link
Member

Moves almost every test fromworkspaceapps_test.go and the reconnecting pty test to a new packagecoderd/workspaceapps/apptest.

Closes#6905


// RunTests runs the entire workspace app test suite against deployments minted
// by the provided factory.
func RunTests(t *testing.T, factory DeploymentFactory) {
Copy link
Member

Choose a reason for hiding this comment

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

Because this isjust used inworkspaceapps_test.go and isn't tested independently, should it be it's own package?

I know it's large in size, but I might argue that it should be in theworkspaceapps_test package instead, because that's what it's being used for anyways.

Regardless, we could call thisRun instead, sincetest is in the package name.

Copy link
Member

@EmyrkEmyrkApr 6, 2023
edited
Loading

Choose a reason for hiding this comment

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

I think we can move it toworkspaceapps pkg too.

Actually we cannot. You cannot import_test packages. So if we moved this toworkspaceapps directory andworkspaceapps_test package, then we cannot import it in our APGL and enterprise tests.

We will call this from the APGL and enterprise coderd tests.

Copy link
Member

@EmyrkEmyrk left a comment

Choose a reason for hiding this comment

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

This is primarily moving code. LG, going to try and use this in enterprise now.

@EmyrkEmyrk merged commit5398150 intomainApr 6, 2023
@EmyrkEmyrk deleted the dean/workspaceapps-test branchApril 6, 2023 21:35
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 6, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@kylecarbskylecarbskylecarbs left review comments

@EmyrkEmyrkEmyrk approved these changes

Assignees

@deansheatherdeansheather

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Unit tests refactored into own package for APGL and Enterprise to leverage

3 participants

@deansheather@Emyrk@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp