Giter VIP home page Giter VIP logo

vaportesttools's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vaportesttools's Issues

Do we require a library?

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())
    }

}

clang: error: no such file or directory on Ubuntu 18.04.1 fails to build

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.