coreml-service-yolov8/Tests/AppTests/AppTests.swift
2024-04-16 11:31:23 +02:00

16 lines
405 B
Swift

@testable import App
import XCTVapor
final class AppTests: XCTestCase {
func testHelloWorld() async throws {
let app = Application(.testing)
defer { app.shutdown() }
try await configure(app)
try app.test(.GET, "hello", afterResponse: { res in
XCTAssertEqual(res.status, .ok)
XCTAssertEqual(res.body.string, "Hello, world!")
})
}
}