I have a .txt file that I'd like to unit test. Is there a way with OCMock to make a "fake" test files for testing purposes? The behavior of my application depends on whats in the text file and ideally I'd like to write a unit test with different variations of the text file to test to make sure it works in all cases. The text file has a fixed name and file path.
0
There are 0 best solutions below
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in TDD
- How to write tests for classes with inheritance
- Need help in passing this simple mocha test in javascript
- Best practice for handling appsettings values
- Why does Jasmine toEqual return true when comparing empty array with empty object?
- Laravel 5.1 testing with PHPUnit and PHPSpec
- Is there a way to create a custom cucumber formatter that prints the Given, When and Then steps
- Unable to get Ruby Page-Object gives error "undefined method"
- How to start my first TDD project?
- How to make JUnit test fall down if constuctor is present?
- Rspec: Factory Girl & Complex Associations
- python assertRaises don't pass test if function with parameters
- How verify the call to an interface with Mockito?
- Rspec: Validation failed: Name has already been taken
- Simple Spec That Validates_Associated
- Test is not read a value of a properties file
Related Questions in OCUNIT
- Timed out waiting 120 seconds for simulator to boot
- UIImageView error with OCUnit
- How to run and debug unit tests for an iPhone application
- Unit testing keyWindow using OCUnit throws an error
- OCUnit on private properties
- Static Library added as sub-project vs static library added as target
- OCMock stub class methods of the class that is being tested
- Test name in the setUp/tearDown methods
- Is it possible to test IBAction?
- CLLocation can't be found even though <CoreLocation/CoreLocation.h> is imported
- OCUnit : changing the user's locale for testing
- Unit Testing in With A Static Library
- GHUnit error file _OBJC_CLASS_$_SenTestCase", referenced
- Unit testing with UIWebView
- Xcode 4: dyld error running unit tests from command line
Related Questions in OCMOCK
- OCMVerifyAllWithDelay not working
- How to test an object's methods in an viewcontroller class?
- Cannot stub a method ([NSData initWithBase64EncodedString])
- How to get a list of mocked object with OCMock
- Testing void methods using OCMock in iOS
- ios - How to mock a method with pmkpromise as the return type
- OCMock test code with intermediate variable
- How to write unit test for testing view controller?
- OCMStub sends OCMConstraint instance to to real method upon stub creation
- OCMock: Setting expectations on properties
- Advice on BDD for iOS needed
- How to start with OCMock and check if method was invoked
- How test mapping in RestKit method postObject:path:parameters:success:failure: with OCMock
- Unit Test CLLocationManager implementation
- OCMock Unrecognized Selector for mocked object
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?