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 Topic Selection support and Overhaul Tests #107

Merged
merged 23 commits into from
Dec 17, 2018
Merged

Add Topic Selection support and Overhaul Tests #107

merged 23 commits into from
Dec 17, 2018

Conversation

vexx32
Copy link
Owner

@vexx32 vexx32 commented Dec 13, 2018

  • Added Get-Koan command, with support for filtering returned koans based on a pattern.
  • Added -Topic parameter to Measure-Karma, permitting topic selection.
  • Added Get-/Set-PSKoanlocation commands, which permit the user to retrieve and set the stored koans folder location value.
  • Removed the $env:PSKoans_Folder variable; it will no longer be used.
  • Renamed Write-MeditationPrompt to Show-MeditationPrompt
  • Added New-PSKoanErrorRecord command as helper function to neatly construct error records.
  • Tests for Invoke-Koan
  • Tests for Get-PSKoanLocation and Set-PSKoanLocation
  • Tests for New-PSKoanErrorRecord
  • Tests for -Topic parameter of Measure-Koan
  • Tests for Get-Koan

@vexx32 vexx32 self-assigned this Dec 13, 2018
@vexx32 vexx32 added the Category-Module Pertaining to the module's functionality itself. label Dec 13, 2018
@vexx32 vexx32 added this to the v0.42.2 milestone Dec 13, 2018
@vexx32 vexx32 force-pushed the 0.42.0 branch 2 times, most recently from e8621f0 to 26fb11d Compare December 14, 2018 03:53
@vexx32 vexx32 added PR-Needs-Review 🔍 Let's take a closer look! Category-Tests ✅ Pertaining to tests for the module functions. labels Dec 14, 2018
@vexx32 vexx32 changed the title Add Topic Selection support Add Topic Selection support and Overhaul Tests Dec 14, 2018
steviecoaster
steviecoaster previously approved these changes Dec 14, 2018
Copy link
Collaborator

@steviecoaster steviecoaster left a comment

Choose a reason for hiding this comment

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

This is a real solid PR. LGTM!

@vexx32
Copy link
Owner Author

vexx32 commented Dec 15, 2018

@steviecoaster If you have a few moments to check over the new stuff, I'd appreciate a second set of eyes before I put this into the master branch. 😄

@vexx32 vexx32 force-pushed the 0.42.0 branch 2 times, most recently from a7c0e47 to 6d6d350 Compare December 16, 2018 18:34
* Update Measure-Karma to support listing topics
- Update Measure-Karma to support specifying topics to check

* Update meditation prompts to support specified topics

* Rename validator class for clarity

* Rename list switch for consistency

* Replace reference to old function name in Measure-Karma CBH
- Use module-scoped variable instead of environment variable
- Add comment help to PSKoanLocation functions
- Replace references to module variable with get/set function
- Permit nonexistent paths for Set-PSKoanLocation
- Add KoanLocation functions to PSD1 exports
- Supports regex patterns
- Add New-PSKoanErrorRecord function for easy error record creation
- Other small changes
- Invoke-Koan.Control_Tests
- Get-Blank.Tests
TEST: Resolve remaining tests issues

TEST: Resolve outstanding issues with Measure-Karma tests
- Add tests for behaviour when koan library is empty/missing
MODULE: Ensure correct checking of total koans count

TEST: Use #Requires -Module for tests
- using module is not needed for module tests
- Fix issue with type check
- Use more robust test method for exception type
@steviecoaster
Copy link
Collaborator

g2g

@vexx32 vexx32 merged commit 4c4c516 into master Dec 17, 2018
@vexx32 vexx32 deleted the 0.42.0 branch December 17, 2018 21:28
@vexx32 vexx32 removed the PR-Needs-Review 🔍 Let's take a closer look! label Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category-Module Pertaining to the module's functionality itself. Category-Tests ✅ Pertaining to tests for the module functions.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants