UISpecRunner 0.4.1

23 views
Skip to first unread message

Blake Watters

unread,
Mar 14, 2011, 7:44:54 AM3/14/11
to uispec
Hi all -

I thought the list might be interested in an update to the UISpecRunner tool and library. UISpecRunner lets you run your UISpec test suite from the Terminal, rather than going through Xcode. It uses a thin extension to UISpec to allow configuration via environment variables. This enables the following sorts of executions:
`uispec` - Build & run all specs in the project
`uispec -s MySpecClass` - Build & run the MySpecClass specs
`uispec -s MySpecClass -e myExampleMethod` - Build & run myExampleMethod on MySpecClass
`uispec -p MySpecProtocolGrouping` - Build & run all specs implementing the MySpecProtocolGrouping protocol.

New in this version:
* Support for Xcode 4 workspaces and schemes
* Added driver for running specs via WaxSim (https://github.com/robholland/WaxSim)
* Switched the default runner to WaxSim
* Added Rakefile example
* Added support for exiting the test process after running tests

Known issues:
* Running specs via AppleScript (osascript) is broken in Xcode 4. I don't know AppleScript well and wasn't able to fix it. WaxSim is much better IMHO anyway.

Best,
Blake

Blake Watters
Two Toasters | CTO

Mohammed Naghman

unread,
Mar 16, 2011, 8:37:22 PM3/16/11
to uis...@googlegroups.com
Hi,

Is there any documentation on how to install and use UISpecRunner?

Thanks,
Naghman

--
You received this message because you are subscribed to the Google Groups "UISpec" group.
To post to this group, send email to uis...@googlegroups.com.
To unsubscribe from this group, send email to uispec+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/uispec?hl=en.



--
Regards,
Naghman


Blake Watters

unread,
Mar 16, 2011, 8:51:09 PM3/16/11
to uis...@googlegroups.com, Mohammed Naghman
It's distributed as a Ruby Gem:
`sudo gem install uispecrunner`

You then need to update your UISpec target's to include the UISpecRunner code. The Objective-C part is in the gem or you can grab it from Github: https://github.com/twotoasters/UISpecRunner/tree/master/src

Once you have it installed and the target updated, run uispec --help to see the options. Feel free to ping me if you run into hiccups getting going.

- Blake

RobotUser

unread,
Mar 18, 2011, 5:18:52 PM3/18/11
to UISpec
Blake,

Is there a way to specify the device family?
Presently it is launching iPhone simulator by default.

Thanks,
--Waseem
> >>  *Blake Watters*
> >> Two Toasters | CTO
> >> bl...@twotoasters.com
> >>  <%28919%29%20926-8537>(919) 926-8537
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "UISpec" group.
> >> To post to this group, send email to uis...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> uispec+un...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/uispec?hl=en.
>
> > --
> > Regards,
> > Naghman
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "UISpec" group.
> > To post to this group, send email to uis...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > uispec+un...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/uispec?hl=en.
>
>  *Blake Watters*

Blake Watters

unread,
Mar 19, 2011, 2:11:54 AM3/19/11
to uis...@googlegroups.com, RobotUser
Added. Install 0.4.3 and you can use -f or --family. It currently only works with the WaxSim driver. Would be nice to get alignment on the AppleScript drivers
Blake Watters

dvan...@gmail.com

unread,
Apr 21, 2011, 8:31:09 PM4/21/11
to UISpec
Having some issues adding UISpecRunner to my UISpec project. I get
duplicate interface declarations for UISpec.h. Any help is
appreciated.

Blake Watters

unread,
Apr 22, 2011, 12:51:19 PM4/22/11
to uis...@googlegroups.com
You may just want to install the Two Toasters fork of UISpec instead: https://github.com/twotoasters/UISpec

It has all the noisy warnings suppressed and UISpecRunner support baked in.
Blake Watters
Reply all
Reply to author
Forward
0 new messages