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

Inherit target platforms on test modules #7

Merged
merged 2 commits into from
Jan 27, 2019
Merged

Conversation

tindzk
Copy link
Owner

@tindzk tindzk commented Jan 27, 2019

Pull request #6 uncovered a problem in ArtefactResolution: When a test module did not set any target platforms, its dependencies would not be resolved.

Currently, the logic in BuildConfig only considers the platform-specific modules defined on a test module. Change the logic to inherit all targets from the parent module.

Change the type of import on Build to Path to avoid the duplicated normalisation logic of fixPath().

Also, break load() on Build apart into separate functions to allow for better testing.

Pull request #6 uncovered a problem in `ArtefactResolution`: When a
test module did not set any target platforms, its dependencies would
not be resolved.
Currently, the logic in `BuildConfig` only considers the
platform-specific modules defined on a test module. Change the logic
to inherit all targets from the parent module.

Change the type of `import` on `Build` to `Path` to avoid the
duplicated normalisation logic of `fixPath()`.

Also, break `load()` on `Build` apart into separate functions to
allow for better testing.
@tindzk tindzk merged commit a5fa2cc into master Jan 27, 2019
@tindzk tindzk deleted the bug/test-dep-resolution branch January 27, 2019 19:47
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.

1 participant