Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

WIP: Fix Catalog tests when running with code in the cloned tree #343

Merged
merged 7 commits into from
Oct 10, 2018

Conversation

edyoung
Copy link
Contributor

@edyoung edyoung commented Oct 7, 2018

I want to ensure that it works to run the tests against the code that is in the main tree (rather than only after publishing), because it makes for a quicker compile/test cycle.

At present, when you set $env:psmodulepath to include clonepath, as suggested in the README.md, some of the catalog tests fail. This is because clonepath\tests\testmodules is now under $env:psmodulepath, and Install-Module ContosoServer fails because ContosoServer is already 'installed' (it isn't really, but Get-Module -ListAvailable picks it up).

Tried a couple of ways to fix this, but best so far is to move all the module code under src. Then $env:psmodulepath can include clonepath\src without picking up the test modules. Hence large number of files 'changed' but they have just moved directory.

Also some utility funcs which are not used yet but will hopefully be useful in future.

Thoughts?

@edyoung edyoung requested review from bmanikm and alerickson October 7, 2018 20:40
Copy link
Contributor

@bmanikm bmanikm left a comment

Choose a reason for hiding this comment

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

:shipit:

@alerickson
Copy link
Member

Why are the files being moved into a new src directory? Can't $env:psmodulepath include clonepath\PowerShellGet?

@edyoung edyoung merged commit 712d6d3 into development Oct 10, 2018
@edyoung edyoung deleted the test_environment branch November 15, 2018 07:35
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.

3 participants