* Split the `test` nimble task into `unittest` and `functest`, with corresponding test directories and test runners. * Added documentation in README regarding building and testing StrawBoss. * Created a small, simple test project for use in the functional tests. * Added a `keepEnv` template in the server unit test code to make it easy to preserve the working environment for a single unit test to invistigate failures manually.
21 lines
628 B
Nim
21 lines
628 B
Nim
# Package
|
|
|
|
bin = @["strawboss"]
|
|
version = "0.2.0"
|
|
author = "Jonathan Bernard"
|
|
description = "My personal continious integration worker."
|
|
license = "MIT"
|
|
srcDir = "src/main/nim"
|
|
|
|
# Dependencies
|
|
|
|
requires @["nim >= 0.16.1", "docopt >= 0.1.0", "tempfile", "jester", "bcrypt", "untar"]
|
|
requires "https://github.com/yglukhov/nim-jwt"
|
|
requires "https://git.jdb-labs.com/jdb/nim-lang-utils.git"
|
|
|
|
task functest, "Runs the functional test suite.":
|
|
exec "nim c -r src/test/nim/run_functional_tests.nim"
|
|
|
|
task unittest, "Runs the unit test suite.":
|
|
exec "nim c -r src/test/nim/run_unit_tests.nim"
|