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

Break out Unit tests #285

Merged
merged 55 commits into from
Mar 30, 2020
Merged

Break out Unit tests #285

merged 55 commits into from
Mar 30, 2020

Conversation

DarqueWarrior
Copy link
Collaborator

PR Summary

This PR breaks out all the tests to single function per file. It also removes the

InModuleScope VSTeam {
}

From all the tests so the module does not have to loaded to run the tests.

PR Checklist

@DarqueWarrior
Copy link
Collaborator Author

This will be merged once all the tests are ported. I created it no so I could have CI fire on macOS and Linux to make sure the unit test still pass there as well.

@SebastianSchuetze
Copy link
Collaborator

Do you want me to help on that PR?
Please also aware that you need to include applyTypes.ps1 in the unit tests where needed. I had it in my function for PR #283 in this line:
https://github.com/DarqueWarrior/vsteam/blob/569367270c697c60c581b276edcc07c61468fd9e/unit/test/Get-VSTeamBuildTimeline.Tests.ps1#L9

Maybe you want to outsource the includes into an extra file so possible needed includes are done within one ps1 file.

@SebastianSchuetze
Copy link
Collaborator

related #279

@DarqueWarrior DarqueWarrior merged commit c2cb57d into master Mar 30, 2020
@DarqueWarrior DarqueWarrior deleted the unittest branch March 30, 2020 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants