Framework
XCTVapor
XCTVapor is a set of utilities to make writing unit tests for Vapor applications easy.
Overview
For more details, check out the testing documentation.
Topics
Classes
Protocols
Variables
var app: (() throws -> Application)!We recommend configuring this in your XCTest class’soverride func setUp().
Functions
func XCTAssertContains(String?, String?, file: StaticString, line: UInt)func XCTAssertContent<D>(D.Type, XCTHTTPResponse, file: StaticString, line: UInt, (D) throws -> ()) rethrowsfunc XCTAssertEqualJSON<T>(String?, T, file: StaticString, line: UInt)