AsmGrader 0.0.0
Loading...
Searching...
No Matches
test_runner.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "api/test_base.hpp"
4#include "grading_session.hpp"
6
7#include <filesystem>
8#include <memory>
9#include <optional>
10
11namespace asmgrader {
12
15{
16public:
17 AssignmentTestRunner(Assignment& assignment, const std::shared_ptr<Serializer>& serializer);
18
19 AssignmentResult run_all(std::optional<std::filesystem::path> alternative_path) const;
20
21private:
22 TestResult run_one(TestBase& test) const;
23
24 Assignment* assignment_;
25 std::shared_ptr<Serializer> serializer_;
26};
27
28} // namespace asmgrader
Manages test execution and result aggregation for a specific assignment.
Definition test_runner.hpp:15
AssignmentResult run_all(std::optional< std::filesystem::path > alternative_path) const
Definition test_runner.cpp:29
AssignmentTestRunner(Assignment &assignment, const std::shared_ptr< Serializer > &serializer)
Definition test_runner.cpp:25
Declaration for the logic and data encapsulating a class assignment.
Definition assignment.hpp:23
Base class primarily for a user-written test.
Definition test_base.hpp:17
Defines data classes to store result data for the current run session.
Definition asm_buffer.hpp:19
Definition grading_session.hpp:113
Definition grading_session.hpp:93