Skip to content

A shell command to automatically add code to Swift Package Manager projects to run unit tests on Linux.

License

Notifications You must be signed in to change notification settings

valeriomazzeo/homebrew-linuxmain-generator

 
 

Repository files navigation

Platforms

linuxmain-generator

Automatically adds 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.
  -c,--checkOnly:
      Do not modify any file. Exits with 0 if test cases are in sync, otherwise exits with 1.
  --testdir <test directory>:
      The path to the directory with the unit tests. Default = 'Tests'.
  <directory>:
      The project root directory. Default = './'.

Installation

Homebrew

brew tap valeriomazzeo/linuxmain-generator
brew install linuxmain-generator

Manual

git clone https://github.com/valeriomazzeo/homebrew-linuxmain-generator
cd homebrew-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

Originally forked from https://github.com/kareman/linuxmain-generator

About

A shell command to automatically add code to Swift Package Manager projects to run unit tests on Linux.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 94.5%
  • Ruby 5.5%