8000 Test clean-up and modifications to support better consistency by Integralist · Pull Request #327 · fastly/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Test clean-up and modifications to support better consistency #327

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

Merged
merged 48 commits into from
Jul 2, 2021

Conversation

Integralist
Copy link
Collaborator
@Integralist Integralist commented Jul 2, 2021

Summary
There’s not 4k+ additions (I've split a large test file up into separate files).
There's no ‘business logic’ changes (all code changes are to the test code).
The testutil abstractions listed below (except for NewEnv) already exist in the code base (they're just being applied globally).

Highlights

  • Split the compute tests into separate files (e.g. compute_init_test.go, compute_build_test.go etc).
  • Replaced compute.ManifestFilename with pre-existing manifest.Filename.
  • Utilise testutil.TestScenario wherever possible.
  • Utilise testutil.Args everywhere.
  • Utilise testutil.NewAppRunArgs everywhere.
  • Utilise testutil.NewEnv everywhere.
  • Utilise testutil.Err everywhere.
  • Renamed testutil.ErrAPI to testutil.Err so it could be used more generally.
  • Renamed some variables for clarity (e.g. fpath became configPath, and buf became stdout).

@Integralist Integralist requested a review from triblondon July 2, 2021 08:57
Copy link
Contributor
@triblondon triblondon left a comment

Choose a reason for hiding this comment

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

Reviewed on a zoom.

@Integralist Integralist merged commit e429d88 into main Jul 2, 2021
@Integralist Integralist deleted the integralist/ci-tests-timeouts branch July 2, 2021 10:10
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
0