Skip to content

Adds build fixture and migrates build CLI tests.#1848

Merged
jglogan merged 1 commit into
apple:mainfrom
jglogan:testmigrate-build
Jun 29, 2026
Merged

Adds build fixture and migrates build CLI tests.#1848
jglogan merged 1 commit into
apple:mainfrom
jglogan:testmigrate-build

Conversation

@jglogan

@jglogan jglogan commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Improve integration test reliability.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@github-actions

Copy link
Copy Markdown

Code Coverage

Tier Line Coverage
Unit 31.78%
Integration 10.08%
Combined 41.72%

/// Creates a new scratch directory under ``testDir`` and returns its path.
///
/// The directory is removed automatically when the fixture scope exits.
func createTempDir() throws -> FilePath {

@jglogan jglogan Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think we can get rid of this in a final cleanup pass. Since the tests themselves run in test-specific temp directories, creating a temp directory underneath is just unneeded boilerplate.

@katiewasnothere katiewasnothere left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There's a couple places where we could be using helper functions (such as builderDelete) and a couple places we could refactor some helper functions to make them more versatile (like the helper for outputting to local dir). Since this is a big move, I think those things can be cleaned up later, so this PR LGTM.

@jglogan jglogan merged commit 6317a83 into apple:main Jun 29, 2026
4 checks passed
@jglogan jglogan deleted the testmigrate-build branch June 29, 2026 19:16
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