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

Unit Test Revamp - all the tests #4975

Merged
merged 8 commits into from
Jan 19, 2019
Merged

Unit Test Revamp - all the tests #4975

merged 8 commits into from
Jan 19, 2019

Conversation

jpomfret
Copy link
Collaborator

Type of Change

  • Bug fix (non-breaking change, fixes #)
  • New feature (non-breaking change, adds functionality)
  • Breaking change (effects multiple commands or functionality)
  • Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
  • Adding code coverage to existing functionality
  • Pester test is included
  • If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
  • Nunit test is included
  • Documentation
  • Build system

Purpose

Changing all the unit tests to match that of #4966

Additional Changes

  • Invoke-DbaDbCorruption.Tests.ps1 - file was renamed to match the correct function name Invoke-DbaDbCorruption
  • Test-DbaJobOwner.Tests.ps1 - file renamed to match the correct function name Test-DbaAgentJobOwner
  • Get-DbaClusterAvailableDisk.Tests.ps1 - removed file, it was testing Get-DbaWsfcAvailableDisk and there is already a test file for that one.

@wsmelton
Copy link
Member

@jpomfret this is way to big a PR to review and merge.

The renames are best for tracking purposes to be their own individual PR. The cleanup of the unit test if you can do as you have done previously keeping each PR to around 50-60 is best, then we know if something is breaking the current test. The failure right now is effected by some change that was made in this PR but with 521 changes I'm not going to try and figure out what 😁

@potatoqualitee
Copy link
Member

i asked her to, if they all get to pass, i'll be good merging. she used regex so it's the same changes over and over 😁

@potatoqualitee potatoqualitee changed the base branch from development to unit January 19, 2019 10:41
@potatoqualitee
Copy link
Member

I'm going to merge into the unit branch and see if those unrelated test failures continue. If so, I'll dig a bit deeper today.

@potatoqualitee potatoqualitee merged commit 6c89a53 into dataplat:unit Jan 19, 2019
@jpomfret
Copy link
Collaborator Author

Three unit tests were still failing for a real reason. They have no params and the "one size fits all" unit test I wrote didn't work for those... I'll dig in a little later and see whether I need to make a change to the test again or not.. Thanks folks

@potatoqualitee
Copy link
Member

working it now!

@jpomfret jpomfret deleted the UnitTestsForEveryone branch March 20, 2019 17:14
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.

3 participants