From cb629a2297506cde44360ff4c33594e243acbdb9 Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Fri, 23 Nov 2018 20:57:51 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Rewrite=20Tests=20section?= =?UTF-8?q?=20of=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5138eb4..0955eb6 100644 --- a/README.md +++ b/README.md @@ -162,17 +162,12 @@ $ script/build Build output can be found in the `build/` directory within the project. -## ๐Ÿšงโœ… Tests +## โœ… Tests -The tests in this project are a work-in-progress. Since Xcode does not officially support tests for command-line tool targets, there is some strange behavior and manual actions necessary to create and/or update the tests: - -- Types from the `mas` target must be included in the `mas-tests` target in order to be used in a test. - - `@testable import mas` does not work -- XCTest is the current test framework - - this may change in the future to Quick/Nimble. -- Code coverage doesn't show up for code under test until you enable "Show Test Bundles". Presumably, this is because production code is currently being added to two targets and Xcode is getting confused. - -We may move the app code into a framework target to make it easier to test. +The tests in this project are a recent work-in-progress. +Since Xcode does not officially support tests for command-line tool targets, +all logic is part of the MasKit target with tests in MasKitTests. +Tests are written using [Quick]. ## ๐Ÿ“„ License @@ -180,3 +175,4 @@ mas-cli was created by [@argon](https://github.com/argon). Code is under the [MIT license](LICENSE). [mas-cli]: https://github.com/mas-cli/mas +[Quick]: https://github.com/Quick/Quick