liveui / vaportesttools Goto Github PK
View Code? Open in Web Editor NEWMake testing Vapor 3 apps easy
License: MIT License
Make testing Vapor 3 apps easy
License: MIT License
In this case, make application or request is easy. so, do we require a library?
import Vapor
import XCTest
@testable import App
final class YourTests: XCTestCase {
func testFunc() throws {
let req = try makeReq()
}
static let allTests = [
("testFunc", testFunc),
]
func makeApp() throws -> Application {
var config = Config.default()
var env = try Environment.detect()
var services = Services.default()
try App.configure(&config, &env, &services)
return try Application(
config: config,
environment: env,
services: services
)
}
func makeReq() throws -> Request {
return Request(using: makeApp())
}
}
Hi. I'm totally not sure what am i doing wrong. And i have noticed that your library has Ubuntu 16.04 badge and not 18.04. But anyway i'm hoping to get some help. Here is the error swift trows at me.
Linking ./.build/x86_64-unknown-linux/debug/backendPackageTests.xctest
clang: error: no such file or directory: '/home/igor/.../.build/x86_64-unknown-linux/debug/VaporTestTools.build/Extensions/Response'
clang: error: no such file or directory: 'tools/Response+Checks.swift.o'
clang: error: no such file or directory: '/home/igor/.../.build/x86_64-unknown-linux/debug/VaporTestTools.build/Extensions/Response'
clang: error: no such file or directory: 'tools/Response+Debug.swift.o'
clang: error: no such file or directory: '/home/igor/.../.build/x86_64-unknown-linux/debug/VaporTestTools.build/Extensions/Response'
clang: error: no such file or directory: 'tools/Response+Decoding.swift.o'
clang: error: no such file or directory: '/home/igor/.../.build/x86_64-unknown-linux/debug/VaporTestTools.build/Extensions/Response'
clang: error: no such file or directory: 'tools/Response+Getters.swift.o'
<unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)
error: terminated(1): /home/igor/.swiftenv/versions/4.2/usr/bin/swift-build-tool -f /home/igor/.../.build/debug.yaml test output:
As you may see it says no such file or directory tool/Response+Getters.swift.o
which seems pretty weird to me.
Any suggestions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.