Testing Network Code

  • Chapter
  • First Online:
Test-Driven Development in Swift
  • 719 Accesses

Abstract

This chapter shows how to use tests to develop code that interacts with the network. You'll learn how to use a Stub Test Double to simulate different network responses.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
EUR 29.95
Price includes VAT (Thailand)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
EUR 46.99
Price includes VAT (Thailand)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
EUR 54.99
Price excludes VAT (Thailand)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Gio Lodi

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

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

Download citation

Publish with us

Policies and ethics

Navigation