-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat(project): enhance project update management and testing #178
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
666f8f0
feat(project): add Update-ProjectRecent function to manage recent pro…
rulasg 6532dd2
refactor(test): update global variable handling for TestName
rulasg 77840b7
feat(mock): add Mock_Today function to retrieve today's date
rulasg 462f2c3
fix(test): comment out Enable-InvokeCommandAliasModule in Test_FindPr…
rulasg 30b48fe
feat(includeFiles): add functions to run before and after tests
rulasg 459b689
fix(project): correct query assignment in Update-ProjectRecent function
rulasg 8c2fcdd
fix(test): remove commented Enable-InvokeCommandAliasModule commented…
rulasg 05666e4
fix(mock): update date values in Get-Mock_Today function
rulasg 28437a6
test(project): add unit tests for Update-ProjectRecent functionality
rulasg cc0a4cf
refactor(test): replace MockCall_GitHubOrgProjectWithFields with Mock…
rulasg 49bad91
feat(test): add Reset_Test_Mock function and integrate it in Run_Befo…
rulasg 323e027
refactor(copilot): streamline Arrange phase in Test_AddProjectUser fu…
rulasg 727fba3
refactor(test): remove redundant mock resets from test cases and use …
rulasg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # Run Before and After any test | ||
| # | ||
| # Supported by TestingHelper 4.1.0 we can specify code that will run : | ||
| # - Before each test | ||
| # - After each test | ||
| # - Before all tests | ||
| # - After all tests | ||
|
|
||
| function Run_BeforeAll{ | ||
| Write-Verbose "Run_BeforeAll" | ||
| } | ||
|
|
||
| function Run_AfterAll{ | ||
| Write-Verbose "Run_AfterAll" | ||
| } | ||
|
|
||
| function Run_BeforeEach{ | ||
| Write-Verbose "Run_BeforeEach" | ||
|
|
||
| Reset_Test_Mock | ||
| } | ||
|
|
||
| function Run_AfterEach{ | ||
| Write-Verbose "Run_AfterEach" | ||
| } | ||
|
|
||
| Export-ModuleMember -Function Run_* | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| function Get-Mock_Today{ | ||
| $ret = @{ | ||
| # today = "2024-06-30" | ||
| today = "2025-03-15" | ||
| } | ||
|
|
||
| return $ret | ||
| } | ||
|
|
||
| function Mock_Today{ | ||
|
|
||
| $today = (Get-Mock_Today).today | ||
| MockCallToString -Command "Get-Date -Format yyyy-MM-dd" -OutString $today | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| function Reset_Test_Mock{ | ||
| [cmdletbinding()] | ||
| param( | ||
| [switch]$NoResetDatabase | ||
| ) | ||
|
|
||
| Reset-InvokeCommandMock | ||
| Mock_DatabaseRoot -NotReset:$NoResetDatabase | ||
| Mock_Today | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,4 @@ | ||
| function Test_GetUser_SUCCESS{ | ||
| Reset-InvokeCommandMock | ||
| Mock_DatabaseRoot | ||
|
|
||
| Assert-NotImplemented | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
Test/public/integrations/update-ProjectItemsStatusOnDueDate.test.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
Test/public/integrations/update-ProjectItemsWithIntegration.test.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note