← Back to notebook index

Notebook Topic

Software Quality & Testing

English topic guide inspired by the original iOS Developer Notebook, expanded for both iOS and Android teams.

What this topic covers

Execution checklist

iOS implementation notes

Android implementation notes

Code examples

Swift

func testCheckoutTotal() {
  let total = Checkout.calcTotal(items: [.init(price: 10), .init(price: 5)])
  XCTAssertEqual(total, 15)
}

Kotlin

@Test fun checkoutTotal() {
  val total = Checkout.calcTotal(listOf(Item(10), Item(5)))
  assertEquals(15, total)
}

Reference links

Related topics