Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.97 KB

File metadata and controls

54 lines (37 loc) · 1.97 KB

Contributing to JiraPS

Happy to see you are interested in helping.

We have a comprehensive documentation on how to contribute here: Contributing to AtlassianPS.

Testing

For detailed information about writing and debugging tests, see the Testing Guide.

Key highlights:

  • JiraPS uses Pester 6.2.0 through 6.x for unit testing
  • All tests follow a consistent structure with Context blocks
  • Test organization: Tests mirror the module structure
    • Tests/Functions/Public/ - Public CRUD functions
    • Tests/Functions/Private/ - Private converter functions
  • Mock debugging: Uncomment $VerbosePreference = 'Continue' in BeforeAll to see mock parameter values
  • Templates: Use .template.ps1 in the appropriate directory as a starting point

Creating New Tests

When adding tests for a new function:

  1. Public functions (Get-, Set-, New-*, etc.): Create in Tests/Functions/Public/

  2. Private converter functions (ConvertTo-, ConvertFrom-): Create in Tests/Functions/Private/

Quick Start

Here is the gist of it once you have forked the repository:

  • before changing the code
git clone https://github.com/<YOUR GITHUB USER>/JiraPS
cd JiraPS
git checkout -b <NAME FOR YOUR FEATURE>
code .
  • after making the changes
git add .
git commit -m "<A MESSAGE ABOUT THE CHANGES>"
git push