在使用Hudson与之前的项目持续集成之后,我想为我正在研究的iPhone项目设置一个持续集成服务器.在做了一些研究之后,看起来没有专门为Xcode设计的CI引擎,但是有一个人使用Cruise Control和xcodebuild CLI工具取得了成功.这里有人试过吗?有没有适合Xcode项目的CI引擎?
我可能会试试Cruise Control.我会用我的发现发表一个答案.
iphone xcode continuous-integration cruisecontrol xcodebuild
我正在试验iPhone SDK并做一些TDD ala Dr. Nic的rbiPhoneTest项目.我想知道有多少(如果有的话)成功使用这个或任何其他测试框架的iPhone/Cocoa?更重要的是,我想知道如何最好地断言专有的二进制请求/响应协议.想法是通过网络发送二进制请求并接收二进制响应.使用byte和'ing和oring创建请求和响应.我正在使用黄金副本模式来测试我的请求.这是我到目前为止所拥有的.不要笑,因为我是btoh Objective C和Ruby的新手:
require File.dirname(__FILE__) + '/test_helper'
require 'fileutils'
require 'io'
require "MyModel.bundle"
OSX::ns_import :MyModel
module MyTestExtensions
def is_absolute_path(path)
return /^\/.*/.match(path)
end
def parent_directory(file)
dir = file
if(! is_absolute_path(dir))
dir = File.expand_path(dir)
end
dir = File.dirname(dir)
assert is_absolute_path(dir), "Expecting an absolute path with #{dir}"
return dir
end
def assert_NSData_contains_bytes_from_file(file, data)
assert_not_nil data, "Data should not be nil."
assert data.bytes, "data should have bytes"
data.length.times { |i|
expected = file.getc
assert_not_nil expected, "Expected only #{i} bytes. Actual …Run Code Online (Sandbox Code Playgroud)