LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
TestRunIndex.hpp File Reference
#include "TestOutline.hpp"
#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <functional>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
Include dependency graph for TestRunIndex.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  analyzer::TestRunEntry
 One test of a results folder, read without loading the whole log. More...
 
struct  analyzer::FailureGroup
 Failing tests sharing one normalised message. More...
 

Namespaces

namespace  analyzer
 

Typedefs

using analyzer::ScanProgress = std::function< bool(std::size_t done, std::size_t total)>
 Called after each scanned log with (done, total); return false to cancel.
 

Enumerations

enum class  analyzer::FailureSource { analyzer::None , analyzer::StepFail , analyzer::RobotXml }
 Where TestRunEntry::failureMessage came from. More...
 

Functions

TestRunEntry analyzer::ReadTestLogSummary (const std::filesystem::path &file)
 
std::string analyzer::FindDecisiveFailureMessage (const std::filesystem::path &file)
 
std::unordered_map< std::string, std::string > analyzer::ReadRobotFailures (const std::filesystem::path &folder)
 
std::string analyzer::TestNameKey (std::string_view name)
 
std::string analyzer::CollapseWhitespace (std::string_view text)
 Collapses whitespace runs (including newlines) to one space and trims.
 
std::string analyzer::NormalizeFailureMessage (std::string_view message)
 
std::vector< TestRunEntry > analyzer::ScanResultsFolder (const std::filesystem::path &folder, const ScanProgress &progress={})
 
std::vector< FailureGroup > analyzer::GroupFailures (const std::vector< TestRunEntry > &entries)
 

Variables

constexpr std::string_view analyzer::kMergedLogSuffix = "__merged_logs.txt"
 File-name suffix of a safeAPI merged test log inside a results folder.