-
Notifications
You must be signed in to change notification settings - Fork 5
🧪 [Tests]: Refactor tests structure with reusable cases for each auth type #330
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (5)
- tests/Auth.Tests.ps1: Language not supported
- tests/Auth2.Tests.ps1: Language not supported
- tests/AuthCases.ps1: Language not supported
- tests/Emojis.Tests.ps1: Language not supported
- tests/Environments.Tests.ps1: Language not supported
…tion test cases for consistency
…clean up test file
…nnection functionality
…test output formatting
…r GitHub account connections
…sary logging group
…account and app connections
…during disconnection
… and enhance logging output
…g and logging structure
…ing for GitHub Actions
…sts by removing redundant parameters
…and add new connection tests for GitHub App
…Hub context and update tests accordingly
…meter and enhance test coverage
… code readability
…arnings based on Silent parameter
…s for improved organization and clarity
…check for IAT and ensuring Git configuration is set for all non-APP contexts
…or accurate repository retrieval
…itory retrieval logic
…curate repository retrieval
…from Format-Table to Format-List for improved readability
…ty and ensure repository retrieval checks for non-empty results
…epository, and Remove-GitHubRepository functions to indicate readiness for future tests
…zations.Tests for GitHub organization functionalities
…sistency in tests
…tion retrieval and improve logging
…s for improved coverage
…henticated user's organizations
… based on owner type
…e accurate validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 23 changed files in this pull request and generated no comments.
Files not reviewed (20)
- src/functions/private/Auth/Context/Set-GitHubContext.ps1: Language not supported
- src/functions/public/Auth/Connect-GitHubAccount.ps1: Language not supported
- src/functions/public/Auth/Connect-GitHubApp.ps1: Language not supported
- src/functions/public/Auth/Context/Switch-GitHubContext.ps1: Language not supported
- src/functions/public/Auth/Disconnect-GitHubAccount.ps1: Language not supported
- src/functions/public/Git/Set-GitHubGitConfig.ps1: Language not supported
- src/functions/public/Organization/Get-GitHubOrganization.ps1: Language not supported
- src/functions/public/Repositories/Repositories/Get-GitHubRepository.ps1: Language not supported
- src/functions/public/Repositories/Repositories/New-GitHubRepository.ps1: Language not supported
- src/functions/public/Repositories/Repositories/Remove-GitHubRepository.ps1: Language not supported
- src/loader.ps1: Language not supported
- tests/Apps.Tests.ps1: Language not supported
- tests/Auth.Tests.ps1: Language not supported
- tests/Data/AuthCases.ps1: Language not supported
- tests/Emojis.Tests.ps1: Language not supported
- tests/Environments.Tests.ps1: Language not supported
- tests/GitHub.Tests.ps1: Language not supported
- tests/Organization.Tests.ps1: Language not supported
- tests/Organizations.Tests.ps1: Language not supported
- tests/Repositories.Tests.ps1: Language not supported
|
Module GitHub - 0.18.2 published to the PowerShell Gallery. |
|
GitHub release for GitHub v0.18.2 has been created. |
Description
This pull request includes several changes aimed at improving the functionality and user experience of GitHub context management and authentication scripts, but most importantly changing the way tests are structured.
Context Management
Set-GitHubDefaultContexttoSwitch-GitHubContextand added an alias for backward compatibility. [1] [2]User Feedback Enhancements
Connect-GitHubAccount.ps1,Connect-GitHubApp.ps1, andDisconnect-GitHubAccount.ps1. [1] [2] [3]loader.ps1.Authentication and Configuration
Set-GitHubGitConfig.ps1to support additional authentication types (IAT, PAT, UAT).Get-GitHubOrganization.ps1. [1] [2]Testing Improvements
PSAvoidUsingWriteHostinApps.Tests.ps1and refactored test structure for better organization and clarity.Type of change
Checklist