SmartTester  2.0.0
Smart Tester is unit testing and regression testing framework used for testing SmartCGMS system.
Public Member Functions | List of all members
tester::RegressionTester Class Reference

#include <RegressionTester.h>

Public Member Functions

 RegressionTester (std::wstring config_filepath)
 
HRESULT compareLogs (const std::string &referenceLog)
 

Detailed Description

Class responsible for execution of regression tests.

Constructor & Destructor Documentation

◆ RegressionTester()

tester::RegressionTester::RegressionTester ( std::wstring  config_filepath)
explicit

Loads configuration from given path into memory and executes it. Output will be a log which can be later tested alongside the reference log for regression.

Parameters
config_filepathpath to the configuration file

Member Function Documentation

◆ compareLogs()

HRESULT tester::RegressionTester::compareLogs ( const std::string &  referenceLog)

Compares generated log with reference log on given path.

Parameters
referenceLogpath to reference log
Returns
result of regression test

Line was found

If the line was not found, note it down

If this is the first mismatch, we note the expected and actual log lines


The documentation for this class was generated from the following files: