A shell command to automatically add code to Swift Package Manager projects to run unit tests on Linux.
Swift
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Sources
linuxmain-generator.xcodeproj
.gitignore
.swift-version
LICENSE.txt
Package.pins
Package.swift
README.md

README.md

Platforms

linuxmain-generator

Automatically add code to Swift Package Manager projects to run unit tests on Linux.

Usage: linuxmain-generator
  -o,--overwrite:
      Replace <test directory>/LinuxMain.swift if it already exists.
  --testdir <test directory>:
      The path to the directory with the unit tests. Default = 'Tests'.
  <directory>:
      The project root directory. Default = './'.

This project exists mainly to demonstrate the usage of the FileSmith and Moderator projects. Check out valeriomazzeo/linuxmain-generator for more features.

Installation

Homebrew

brew install kareman/repo/linuxmain-generator

Manual

git clone https://github.com/kareman/linuxmain-generator
cd linuxmain-generator
swift build -c release
cp .build/release/linuxmain-generator /usr/local/bin/linuxmain-generator

License

Released under the MIT License (MIT), http://opensource.org/licenses/MIT

Kåre Morstøl, NotTooBad Software