q231950 / the-stubborn-network

A Swifty and clean stubbing machine.
MIT License
7 stars 3 forks source link

Improve Local Test Execution Experience #33

Closed q231950 closed 4 years ago

q231950 commented 4 years ago

It is difficult to figure out how to execute The Stubborn Network unit tests locally. This pull request improves the situation.

When the required path to the stubs is not exported when executing tests on the command line, the following output is now shown:

[the-stubborn-network] swift test                                                                                                                                                                                 local-test-execution  ✭ ✈ ✱
[3/3] Linking StubbornNetworkPackageTests
Assertion failed: Incorrect Test Setup ⚠️
    ... Please export either a TRAVIS_BUILD_DIR or a STUB_DIR to store the stubs during test execution.
    ... what about giving `export STUB_DIR='./stubs' && swift test` a try?
: file /Users/kim/Development/the-stubborn-network/Tests/StubbornNetworkTests/TestHelper.swift, line 27
Exited with signal code 4