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

Update unit test script #438

Merged
merged 5 commits into from
Jul 20, 2023
Merged

Update unit test script #438

merged 5 commits into from
Jul 20, 2023

Conversation

julianjburgos
Copy link
Collaborator

@julianjburgos julianjburgos commented Jul 13, 2023

🗣 Description

Updated RunUnitTest script that were broken by updated baselines.

💭 Motivation and context

Due to the change of baseline names, the PowerShell script was unable to properly run to test each individual unit test. There was also an issue where test names within each control group that did not exist but were specified with the -t option would pass. This was resolved where a warning would appear if a test name did not exist.

🧪 Testing

I tested the changes made by testing each product individually as well as calling individual baseline test numbers to ensure that the script is supposed to run as intended. I also tested if a specific baseline that was specified did not exist as well as if a test within the specific baseline did not exist.

Others can test by running: ScubaGear\Testing\RunUnitTests.ps1 -p <product name(s)> -b <baseline number> -t <specific test case within baseline number>

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • All relevant repo and/or project documentation has been updated
    to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

✅ Pre-merge checklist

  • Revert dependencies to default branches.
  • Finalize version.

✅ Post-merge checklist

  • Create a release.

@julianjburgos julianjburgos added the bug This issue or pull request addresses broken functionality label Jul 13, 2023
@julianjburgos julianjburgos added this to the Emerald milestone Jul 13, 2023
@julianjburgos julianjburgos self-assigned this Jul 13, 2023
Testing/RunUnitTests.ps1 Outdated Show resolved Hide resolved
Copy link
Collaborator

@schrolla schrolla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updates look good. Did notice one bug due to help overhaul. See details below.

Testing/RunUnitTests.ps1 Show resolved Hide resolved
Copy link
Collaborator

@schrolla schrolla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest updated addressed the help issue. Re-tested and works as expected.

@nanda-katikaneni nanda-katikaneni merged commit bb2e7ac into emerald Jul 20, 2023
@schrolla schrolla deleted the update-unit-test branch August 7, 2023 20:20
crutchfield pushed a commit that referenced this pull request Aug 23, 2023
* Fixed hardcoded naming bug and created warning msg

* Small syntax issue that did not affect the code was fixed. Null was
placed in left side of equality on line 132

* Fixed trailing whitespace

* Fixed -b to -c

* Removed -h option

---------

Co-authored-by: Julian Burgos <JBURGOS@MITRE.ORG>
schrolla pushed a commit that referenced this pull request Sep 1, 2023
* Fixed hardcoded naming bug and created warning msg

* Small syntax issue that did not affect the code was fixed. Null was
placed in left side of equality on line 132

* Fixed trailing whitespace

* Fixed -b to -c

* Removed -h option

---------

Co-authored-by: Julian Burgos <JBURGOS@MITRE.ORG>
schrolla pushed a commit that referenced this pull request Nov 2, 2023
* Fixed hardcoded naming bug and created warning msg

* Small syntax issue that did not affect the code was fixed. Null was
placed in left side of equality on line 132

* Fixed trailing whitespace

* Fixed -b to -c

* Removed -h option

---------

Co-authored-by: Julian Burgos <JBURGOS@MITRE.ORG>
schrolla pushed a commit that referenced this pull request Nov 2, 2023
* Fixed hardcoded naming bug and created warning msg

* Small syntax issue that did not affect the code was fixed. Null was
placed in left side of equality on line 132

* Fixed trailing whitespace

* Fixed -b to -c

* Removed -h option

---------

Co-authored-by: Julian Burgos <JBURGOS@MITRE.ORG>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants