Skip to content

Commit b5d2a79

Browse files
committed
remove Unit Test paragraph
1 parent 202b82a commit b5d2a79

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

issue-5/iOS项目的持续集成与管理.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,6 @@ iOS项目的持续集成与管理
2222

2323
我们已经通过[Homebrew](https://brew.sh/)[rbenv](https://github.com/sstephenson/rbenv)来分别安装Jenkins和Ruby,而rbenv能够为我们提供一个最新和稳定的[Ruby Gems](https://rubygems.org/)环境。有个Homebrew和Ruby Gems两个包管理工具之后,我们就几乎能够安装所有我们需要的工具,但很少会破坏与原有OS X系统更新提供的Ruby。
2424

25-
#Unit Testing
26-
We test our iOS projects using Specta and Expecta.
27-
28-
Specta gives us a Behaviour-Driven Development (BDD) style syntax for writing tests which (we think) is more readable than XCTest syntax. It also has a very powerful system of grouping tests together and running blocks of code before or after those tests, which can greatly reduce the amount of duplicated code.
29-
30-
Expecta is a matcher framework which we use to create assertions in our tests. The syntax is very powerful, yet at the same time more readable than the built in XCAssert suite. For example:
31-
32-
```
33-
expect(@"foo").to.equal(@"foo");
34-
expect(foo).notTo.equal(1);
35-
expect([bar isBar]).to.equal(YES);
36-
expect(baz).to.equal(3.14159);
37-
```
38-
39-
We run our tests from XCode while developing and using XCTool on Jenkins, installed via Homebrew. XCTool is an alternative to xcodebuild which allows you to very easily run a test suite from the command line and generate JUnit-style reports.
40-
41-
```
42-
$ xctool -workspace Project.xcworkspace -scheme Project -reporter junit:junit-report.xml test
43-
44-
```
45-
46-
These reports are then published in Jenkins using the JUnit Plugin which provides graphs of the unit test results over time, giving us an insight into how stable our tests are.
47-
4825
#单元测试
4926
我们使用[Specta](https://github.com/specta/specta)[Expecta](https://github.com/specta/expecta)来测试我们的iOS项目。
5027

0 commit comments

Comments
 (0)