Abstract
Automated testing is crucial in any software development project. Manually testing a system built from microservices is tedious and error-prone. In some cases, it is well-nigh impossible to test all the possible failure modes by simply exercising the application through exploratory tests executed by human QA personnel. Automating these tests will save hours of time, and it will prevent those bugs that could cost your business millions in profits.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Tobias Clemson, “Testing Strategies in a Microservice Architecture,” November 18, 2014. http://martinfowler.com/articles/microservice-testing/#conclusion-summary
- 2.
Testing nonfunctional requirements will not be shown in this book. Such specifications are most likely the hardest to verify, and short of a full load-testing environment probably impossible to assert.
- 3.
Ian Robinson, “Consumer-Driven Contracts: A Service Evolution Pattern,” June 12, 2006. http://martinfowler.com/articles/consumerDrivenContracts.html
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
Tobias Clemson, “Testing Strategies in a Microservice Architecture,” November 18, 2014. http://martinfowler.com/articles/microservice-testing/#conclusion-test-pyramid
- 13.
http://xunitpatterns.com/Test Double.html
- 14.
For a more nuanced distinction between types of doubles, see Fowler’s “Marks Aren’t Stubs” article, January 2, 2007. http://martinfowler.com/articles/mocksArentStubs.html
- 15.
- 16.
- 17.
- 18.
See the “Direct Stubbing” section of the Typhoeus gem’s Readme, https://github.com/typhoeus/typhoeus#direct-stubbing
- 19.
- 20.
- 21.
- 22.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Cloves Carneiro Jr. and Tim Schmelmer
About this chapter
Cite this chapter
Carneiro, C., Schmelmer, T. (2016). Testing with Services. In: Microservices From Day One. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1937-9_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-1937-9_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-1936-2
Online ISBN: 978-1-4842-1937-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books