Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

use Convert-ToDockerHostPath for docker tests #117

Merged
merged 10 commits into from
Dec 17, 2020

Conversation

viktor-kaydalov
Copy link
Contributor

When Invoke-DockerTests is executed inside docker container (docker-in-docker scenario), use docker host path for volume mappings.
See also https://stackoverflow.com/questions/31381322/docker-in-docker-cannot-mount-volume

@codecov
Copy link

codecov bot commented Dec 1, 2020

Codecov Report

Merging #117 (4a1271b) into master (9529daa) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #117      +/-   ##
==========================================
+ Coverage   98.70%   98.76%   +0.05%     
==========================================
  Files          25       26       +1     
  Lines         310      325      +15     
==========================================
+ Hits          306      321      +15     
  Misses          4        4              
Impacted Files Coverage Δ
Source/Private/Convert-ToDockerHostPath.ps1 100.00% <100.00%> (ø)
Source/Public/Invoke-DockerTests.ps1 94.87% <100.00%> (+0.27%) ⬆️

Copy link
Contributor

@lee-at-work lee-at-work left a comment

Choose a reason for hiding this comment

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

Great work @viktor-kaydalov. A test covering those new codes will be nice.

Source/Private/Convert-ToDockerHostPath.ps1 Outdated Show resolved Hide resolved
Source/Private/Convert-ToDockerHostPath.ps1 Outdated Show resolved Hide resolved
@lee-at-work
Copy link
Contributor

I am still struggling to create a working test for it.

Copy link
Contributor

@lee-at-work lee-at-work left a comment

Choose a reason for hiding this comment

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

Finally... Great work @viktor-kaydalov 🙌

@viktor-kaydalov viktor-kaydalov merged commit 2dc7643 into master Dec 17, 2020
@viktor-kaydalov viktor-kaydalov deleted the features/Convert-ToDockerHostPath branch December 17, 2020 11:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants