Fresh Beginning
  • Home
  • Speaking
  • Reading
  • Github
  • Alma Mater
  • Contact

Unit Tests

A collection of 10 posts

Minesweeper, Game, Refactor, Swift 4.2, Xcode 10.1, Unit Tests, Unit-testing, Code-coverage

Writing unit tests for Minesweeper game

Yesterday was quite a productive day to conclude the refactor project. Especially I venture into the most sacred territory of any good software - Unit testing. Here are the screenshots of test coverage

  • Jayesh Kawli
2 min read
iOS, Swift 3.0, Error Handling, try, Try-catch, Unit Tests, Unit-testing, Testing

try-catch Blocks and Unit Tests - Swift 3.0

In the last post I wrote about implementing error handler in Swift 3.0 using try-catch block technique. In this post I will go over how to unit test it. Since we all

  • Jayesh Kawli
3 min read
Swift, Testing, Unit Tests, Unit-testing, Singleton, Xcode

Swift - Testing singletons

In this post we will see how you can test swift singletons easily. Disclaimer: I haven't discovered it myself, but I found it a while back on StackOverflow while looking for how to

  • Jayesh Kawli
1 min read
Swift, Testing, Unit Tests, Unit-testing, Xcode, Tips, Protocols

Swift testing with protocols

In this post, we shall see how protocols work with unit testing. Say, you have a downloader class DownloadFileClass for fetching network data. It follows the protocol DownloadFileProtocol. The whole class and protocol

  • Jayesh Kawli
1 min read
iOS, Unit-testing, Unit Tests, Swift, Reactive Cocoa, MVVM, Example, Sample, RACCommand

Testing RACCommand in MVVM architecture

So other day I wrote a demo for MVVM with ReactiveCocoa. Creating MVVM project inherently implies writing unit tests, so I was writing few. While doing so I ran into small problem trying

  • Jayesh Kawli
2 min read
iOS, Testing, Unit Tests, Specta, OCMock, ViewController, ViewController Testing, Unit-testing

iOS Testing - Input fields validation testing (Part 5)

This is the part 5 in the series of articles on 'Unit Testing on iOS'. Below is the list of all articles and respective links to them. iOS Unit Tests - Testing models

  • Jayesh Kawli
3 min read
iOS, Xcode, Testing, Unit Tests, Specta, Tutorial, Tips, Asynchronous, Async, Unit-testing

iOS Testing - Testing asynchronous code (Part 4)

This is the part 4 in the series of articles on 'Unit Testing on iOS'. Below is the list of all articles and respective links to them. iOS Unit Tests - Testing models

  • Jayesh Kawli
1 min read
iOS, Xcode, Testing, Unit Tests, OCMock, Specta, Unit-testing

iOS Unit Testing - Switching method implementations with OCMock (Part 3)

This is the part 3 in the series of articles on 'Unit Testing on iOS'. Below is the list of all articles and respective links to them. iOS Unit Tests - Testing models

  • Jayesh Kawli
2 min read
iOS, Objective-C, Unit Tests, Testing, Specta, OCMock, Unit-testing

iOS Unit Testing - Testing View Controller (Part 2)

This is the part 2 in the series of articles on 'Unit Testing on iOS'. Below is the list of all articles and respective links to them. iOS Unit Tests - Testing models

  • Jayesh Kawli
3 min read
iOS, Objective-C, Unit Tests, Specta, OCMock, Expecta, Testing, Unit-testing

iOS Unit Tests - Testing models creation (Part 1)

This is the part 1 in the series of articles on 'Unit Testing on iOS'. Below is the list of all articles and respective links to them. iOS Unit Tests - Testing models

  • Jayesh Kawli
3 min read
Fresh Beginning © 2021
Latest Posts Ghost