Go to file
Vladimir Babin aea6be0b92 Update test 2021-03-30 20:28:50 +05:00
Sources Update parameters order 2021-03-30 11:09:09 +05:00
Tests Update test 2021-03-30 20:28:50 +05:00
.gitignore Update for VIZ 2021-02-22 13:30:56 +05:00
LICENSE Update LICENSE 2019-03-22 12:39:48 -05:00
Package.swift Update for VIZ 2021-02-22 13:30:56 +05:00
README.md Update for VIZ 2021-02-22 13:30:56 +05:00

README.md

viz-swift-lib

VIZ library for Swift.

Installation

Using the Swift package manager:

In your Package.swift just add:

dependencies: [
    .package(url: "https://github.com/viz-blockchain/viz-swift-lib.git", .branch("master"))
]

and run swift package update. Now you can import VIZ in your Swift project.

Running tests

To run all tests simply run swift test, this will run both the unit- and integration-tests. To run them separately use the --filter flag, e.g. swift test --filter IntegrationTests

Developing

Development of the library is best done with Xcode, to generate a .xcodeproj you need to run swift package generate-xcodeproj.

To enable test coverage display go "Scheme > Manage Schemes..." menu item and edit the "viz-swift-lib" scheme, select the Test configuration and under the Options tab enable "Gather coverage for some targets" and add the viz-swift-lib target.

After adding adding more unit tests the swift test --generate-linuxmain command has to be run and the XCTestManifest changes committed for the tests to be run on Linux.