By Daniel Hinojosa
Daniel Hinojosa, "Testing in Scala" English | ISBN: 1449315119 | 2013 | writer: OReilly Media | PDF | 166 pages | 6 + 1 MB
If you construct your Scala program via Test-Driven improvement, youâll quick see the benefits of trying out ahead of you write construction code. This hands-on ebook indicates you the way to create exams with ScalaTest and the Specs2âtwo of the easiest trying out frameworks availableâand how you can run your checks within the basic construct software (SBT) designed in particular for Scala projects.
By construction a pattern electronic jukebox software, youâll realize find out how to isolate your assessments from huge subsystems and networks with mocking code, and the way to take advantage of the ScalaCheck library for computerized specification-based checking out. If youâre acquainted with Scala, Ruby, or Python, this booklet is for you.
Get an outline of Test-Driven Development
Start an easy undertaking with SBT and create exams prior to you write code
Dive into SBTâs simple instructions, interactive mode, packaging, and history
Use ScalaTest either within the command line and with SBT, and contain JUnit and TestNG
Work with the Specs2 framework, together with Specification types, matchers DSLs, and knowledge Tables
Understand mocking by utilizing Java frameworks EasyMock and Mockito, and the Scala-only framework ScalaMock
Automate trying out by utilizing ScalaCheck to generate faux facts