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

Add Tests for Invoke-Koan and Improve Build & Test Process #106

Merged
merged 6 commits into from
Dec 13, 2018

Conversation

vexx32
Copy link
Owner

@vexx32 vexx32 commented Dec 12, 2018

Resolves #103

  • Adds tests for Invoke-Koan to ensure it isn't throwing errors that we don't expect during known-state Pester tests.
  • Reorganise test files into folders mimicking module structure in terms of public/private functions
  • Rework pathing in Measure-Koan and Invoke-Koan testing to work relative to test files themselves via $PSScriptRoot to ensure tests should always work as long as they're kept in their folder structure.

Build Change

  • Psake.ps1 no longer copies the module into the user's $env:PSModulePath during build. Instead, it simply prepends the working directory to $env:PSModulePath in order to allow PowerShell to discover the module automatically during build.

@vexx32 vexx32 self-assigned this Dec 12, 2018
@vexx32 vexx32 added Category-Module Pertaining to the module's functionality itself. Category-Build 🚀 Modifies the build / deployment system labels Dec 12, 2018
@vexx32 vexx32 added this to the v0.42.2 milestone Dec 12, 2018
@vexx32 vexx32 merged commit 3802fdf into master Dec 13, 2018
@vexx32 vexx32 deleted the Test-Invoke-Koan branch December 13, 2018 03:28
vexx32 added a commit that referenced this pull request Dec 13, 2018
* Reorganise all test scripts

* Modify Psake script to adjust PSModulePath instead of copying files

* Add Invoke-Koan.Tests

* Rework location root behaviour for tests to be more robust

* Use xplat-compatible path separators

* Properly modify PSModulePath to pick up module to be imported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category-Build 🚀 Modifies the build / deployment system Category-Module Pertaining to the module's functionality itself.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant