Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

XCTest Introduction

  • 547 Accesses

Abstract

This chapter gives an overview of the core features of XCTest, Apple's Swift testing framework, and how to use it to write tests from within Xcode. It walks through the most useful testing assertions, how to test asynchronous code, and how to perform setup and tear down logic common to multiple tests.

This is a preview of subscription content, access via your institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-1-4842-7002-8_2
  • Chapter length: 13 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
eBook
USD   34.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-7002-8
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   44.99
Price excludes VAT (USA)
Figure 2-1
Figure 2-2
Figure 2-3

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and Permissions

Copyright information

© 2021 Gio Lodi

About this chapter

Verify currency and authenticity via CrossMark

Cite this chapter

Lodi, G. (2021). XCTest Introduction. In: Test-Driven Development in Swift. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-7002-8_2

Download citation