2024-12-29 17:53:46 +01:00
|
|
|
/*
|
2025-10-31 16:50:47 +01:00
|
|
|
Crafter® Build
|
2025-04-29 00:15:14 +02:00
|
|
|
Copyright (C) 2025 Catcrafts®
|
|
|
|
|
Catcrafts.net
|
2024-12-30 17:21:04 +01:00
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2025-10-31 16:50:47 +01:00
|
|
|
License version 3.0 as published by the Free Software Foundation;
|
2024-12-30 17:21:04 +01:00
|
|
|
|
2025-10-31 16:50:47 +01:00
|
|
|
This library is distributed in the hope that it will be useful,
|
2024-12-30 17:21:04 +01:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
License along with this library; if not, write to the Free Software
|
2024-12-31 20:32:00 +01:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2024-12-30 17:21:04 +01:00
|
|
|
*/
|
2024-12-29 17:53:46 +01:00
|
|
|
module;
|
2025-10-31 16:50:47 +01:00
|
|
|
#include "../lib/json.hpp"
|
|
|
|
|
export module Crafter.Build:Test;
|
|
|
|
|
import std;
|
|
|
|
|
import :Configuration;
|
2024-12-29 17:53:46 +01:00
|
|
|
|
2025-10-31 16:50:47 +01:00
|
|
|
namespace fs = std::filesystem;
|
|
|
|
|
|
|
|
|
|
namespace Crafter {
|
|
|
|
|
export struct TestResult {
|
2025-05-15 15:25:06 +02:00
|
|
|
std::string name;
|
2025-10-31 16:50:47 +01:00
|
|
|
std::string message;
|
|
|
|
|
};
|
|
|
|
|
|
2025-11-16 18:44:41 +01:00
|
|
|
export class Project;
|
2025-10-31 16:50:47 +01:00
|
|
|
export class Test {
|
|
|
|
|
public:
|
|
|
|
|
Configuration config;
|
|
|
|
|
Test(Configuration&& name);
|
2025-11-16 18:44:41 +01:00
|
|
|
Test(const nlohmann::json& configs, const nlohmann::json& config, const fs::path& workingDir, const Project& project);
|
2024-12-29 17:53:46 +01:00
|
|
|
};
|
|
|
|
|
}
|