Abstract
In this chapter we discuss a very important topic, unit testing our code. Proper unit testing coverage of our bot will ensure that we do not create many regressions when we make changes or add enhancements to the existing code. For some of the target audience of this book, the trading bot may be deployed to place real orders with a live account where huge sums of money could be involved. Making sure that we have enough test coverage will ensure that a code bug would be unlikely to place bad orders. We briefly summarize the immense benefits of unit testing here. Proper unit tests:
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Shekhar Varshney
About this chapter
Cite this chapter
Varshney, S. (2016). Unit Testing. In: Building Trading Bots Using Java. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2520-2_13
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2520-2_13
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2519-6
Online ISBN: 978-1-4842-2520-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)