[cscore] Translate unit tests to catch2 (#8999)

This commit is contained in:
Peter Johnson
2026-06-21 13:49:07 -07:00
committed by GitHub
parent f1c9d82d50
commit 50eab65b07
6 changed files with 13 additions and 19 deletions

View File

@@ -2,19 +2,14 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <catch2/catch_test_macros.hpp>
#include "wpi/cs/HttpCamera.hpp"
#include "wpi/cs/cscore_cpp.hpp"
namespace wpi::cs {
class CameraSourceTest : public ::testing::Test {
protected:
CameraSourceTest() = default;
};
TEST_F(CameraSourceTest, HTTPCamera) {
TEST_CASE("CameraSourceTest HTTPCamera", "[cscore][camera-source]") {
auto source = HttpCamera("camera", "http://localhost:8000");
wpi::cs::Shutdown();
}