Questions tagged [specta]

A light-weight TDD / BDD framework for Objective-C & Cocoa

Specta is a light-weight TDD / BDD framework for Objective-C & Cocoa. For more information see: https://github.com/specta/specta

5 questions
1
vote
1 answer

iOS Unit testing with specta on AWS device farm

I'm using today specta to do unit tests. I'm want to start using AWS device farm but when I try to upload the xctest folder it doesn't work. My first fought it that it becouse I'm using specta. Do you know if this might be the problem? Maybe…
Sagiw
  • 75
  • 1
  • 14
1
vote
1 answer

Feature tests with KIF: beforeEach is called after my view controller is loaded?

i have got simple (i guess) question. I want to make a feature test in my app with Specta and KIF. The problem is that i am setting dependency in viewDidLoad method of my View Controller, and in beforeEach method of my spec i'm injecting fake…
Konrad Szczęśniak
  • 1,960
  • 1
  • 14
  • 13
0
votes
1 answer

Specta 'should receive' code

I'm trying to use Specta as my unit testing framework (Instead of Kiwi). How can I test if an object receives a selector Let's say 5 times, like I do in Kiwi? In other words, what is the equivalent to this 'Kiwi' line of code: [[sut should]…
Avi Tsadok
  • 1,843
  • 13
  • 19
0
votes
1 answer

Unit testing secret keys

I am using cocoapods-keys and trying to test if the method returns valid url with secret API key. Test suite looks like this: it(@"should return valid url for api", ^{ NSURL *url = [APIRoutes apiURLWithPath:path parameters:nil]; expect([url…
tailec
  • 630
  • 1
  • 7
  • 20
0
votes
1 answer

Is there a way to get Teamcity to interpret Specta test output?

I am using Specta testing framework for testing an ios mobile application. Teamcity does not do a very good job at parsing the test output and listing which tests failed (like it does with rspec). Is there a way to get Teamcity to play nicely with…
PICyourBrain
  • 9,976
  • 26
  • 91
  • 136