diff --git a/CHANGELOG.md b/CHANGELOG.md index 546b8f7..9baef64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,10 +8,13 @@ The format is based on and uses the types of changes according to [Keep a Change - Updated test definitions for CIS Microsoft 365 Foundations Benchmark for better error handling and object output when errors occur. - Added a parameter to the `Initialize-CISAuditResult` function to allow for a static failed object to be created when an error occurs. +- Refactored `Invoke-M365SecurityAudit` to include a new private function `Invoke-TestFunction` for executing test functions and handling errors. +- Added a new private function `Measure-AuditResult` to calculate and display audit results. +- Enhanced error logging to capture failed test details and display them at the end of the audit. ### Fixed - +- Ensured the `Invoke-TestFunction` returns a `CISAuditResult` object, which is then managed in the `Invoke-M365SecurityAudit` function. ## [0.1.4] - 2024-05-30 @@ -98,4 +101,4 @@ The format is based on and uses the types of changes according to [Keep a Change - A dynamic test loading system based on CSV input for flexibility in defining audit tests. - Comprehensive verbose logging to detail the steps being performed during an audit. - Comment-help documentation for the `Invoke-M365SecurityAudit` function with examples and usage details. -- Attribution to CIS and licensing information under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License in the README. \ No newline at end of file +- Attribution to CIS and licensing information under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License in the README.