-
Notifications
You must be signed in to change notification settings - Fork 254
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
Conversation
14892ab
to
f40949e
Compare
f40949e
to
a241cc5
Compare
placed in left side of equality on line 132
a241cc5
to
e171830
Compare
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.
Updates look good. Did notice one bug due to help overhaul. See details below.
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.
Latest updated addressed the help issue. Re-tested and works as expected.
* 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>
* 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>
* 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>
* 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>
🗣 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
to reflect the changes in this PR.
✅ Pre-merge checklist
✅ Post-merge checklist