iZZiSwift

iZZiSwift

Learning by Sharing Swift Programing and more …

  • Swift Programming
    • Swift Language
    • i0S Swift Issue
  • Devices
  • MacOS
  • Python Programming
  • Kotlin Programming
  • Memo

Tag: xctestcase

MacOS X Document shortcuts

How can one use XCTAssertNil with optional structs?

January 15, 2021 Ogima Cooper

Question or problem in the Swift programming language: Update 3/23/2016 I just tested my original sample code below and it all compiles fine in XCode 7.3. Looks like XCTAssertNil was updated along the way to take an expression of type () throws -> Any? Therefore this question and answer may be no longer needed (except […]

Continue Reading
swift programing language

How to purposely create a malformed URL in Swift

January 13, 2021 Simon Abital

Question or problem in the Swift programming language: I have the following Swift extension on NSURL

Continue Reading

XCTest’ing a tuple

January 13, 2021 James Cameron

Question or problem in the Swift programming language: I am trying to build a unit test like so:

Continue Reading
MacOS X Document shortcuts

How can I locate an XCUIElement searching by partial label text in Swift?

January 12, 2021 Oceane Wilson

Question or problem in the Swift programming language: I have been locating XCUIElements using this method:

Continue Reading
12 useful Terminal commands on Mac

API violation – multiple calls made to -[XCTestExpectation fulfill]

January 11, 2021 Ollie MC

Question or problem in the Swift programming language: I’m writing one of my first integration tests in Swift.

Continue Reading
12 useful Terminal commands on Mac

MacOS Swift Framework testing fail

January 9, 2021 James Cameron

Question or problem in the Swift programming language: I have a framework written in obj-c and swift.

Continue Reading

How do you call XCTest in a Swift Playground?

January 7, 2021 Aba Tayler

Question or problem in the Swift programming language: I was looking at Bendyworks’ article on Unit testing with Swift: http://bendyworks.com/unit-testing-in-swift/

Continue Reading

abstract test case using python unittest

January 6, 2021 Simon Abital

Question or problem about Python programming: Is it possible to create an abstract TestCase, that will have some test_* methods, but this TestCase won’t be called and those methods will only be used in subclasses? I think I am going to have one abstract TestCase in my test suite and it will be subclassed for […]

Continue Reading

Mocking a static class method in a swift unit test in a swifty way?

January 5, 2021 Simon Abital

Question or problem in the Swift programming language: I’m a seasoned Objective-c programmer but I can’t say the same for Swift, I’m having a hard time unit testing a class in swift without using frameworks like OCMock.

Continue Reading

Xcode test cases shows no test coverage

January 3, 2021 Oceane Wilson

Question or problem in the Swift programming language: I’m having problem with getting code coverage in Xcode. It was working at some point of time, however after sometime it has just stopped showing coverage. I’ve checked both the schemes and test coverage plane for the appropriate settings.

Continue Reading

Posts navigation

Older posts

Same Catagory Posts

    iZZiSwift | Developed by iZZi Team from 2017