whatupdave / wox

Wizard of Xcode
68 stars 15 forks source link

Add a task for running the Unit Tests #3

Open joshuatbrown opened 13 years ago

joshuatbrown commented 13 years ago

I'd like to be able to run the unit tests in my app with wox. I'm currently using the following command:

xcodebuild -target MyAppTests -configuration Debug -sdk iphonesimulator4.3 clean build

whatupdave commented 13 years ago

Yep I definitely want to add this

joshuatbrown commented 13 years ago

I'd be happy to work on it. Would you mind explaining at a high level what needs to be done?

whatupdave commented 13 years ago

awesome! If you have a look at packager.rb you'd want to build a task similar to that and then add it to tasks.rb

You'll want to figure out how to nest the task. Under build might be the best, so maybe something like this will work:

# Rakefile
Wox::Tasks.create do
  build :debug, :configuration => 'Debug' do
    test :all
  end
end