If you build your Scala application through Test-Driven Development, youll quickly see the advantages of testing before you write production code. This hands-on book shows you how to create tests with ScalaTest and the Specs2two of the best testing frameworks availableand how to run your tests in the Simple Build Tool (SBT) designed specifically for Scala projects.By building a sample digital jukebox application, youll discover how to isolate your tests from large subsystems and networks with mocking code, and how to use the ScalaCheck library for automated specification-based testing. If youre familiar with Scala, Ruby, or Python, this book is for you.Get an overview of Test-Driven DevelopmentStart a simple project with SBT and create tests before you write codeDive into SBTs basic commands, interactive mode, packaging, and historyUse ScalaTest both in the command line and with SBT, and learn how to incorporate JUnit and TestNGWork with the Specs2 framework, including Specification styles, matchers DSLs, and Data TablesUnderstand mocking by using Java frameworks EasyMock and Mockito, and the Scala-only framework ScalaMockAutomate testing by using ScalaCheck to generate fake data
Dieser Download kann aus rechtlichen Gründen nur mit Rechnungsadresse in A, B, BG, CY, CZ, D, DK, EW, E, FIN, F, GR, HR, H, IRL, I, LT, L, LR, M, NL, PL, P, R, S, SLO, SK ausgeliefert werden.