
Testing in Scala
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Person
Daniel Hinojosa has been a self-employed developer, teacher and speaker for private business, education, and government since 1999. He is passionate about languages, frameworks and programming education. Daniel is a Pomodoro Technique practitioner and is co-founder of the Albuquerque Java User's Group in Albuquerque, New Mexico.
Content
- Intro
- Copyright
- Table of Contents
- Preface
- Audience
- Organization of This Book
- About the Book
- Test-Driven Development
- Conventions Used in This Book
- Using Code Examples
- How to Contact Us
- Acknowledgments
- Chapter 1. Setup
- Setup in Mac OS X, Mac OS X Lion, and Linux
- Setup in Windows
- Using SBT
- SBT Folder Organization
- The Build File
- About Our Examples
- Creating Our Examples Using TDD, ScalaTest, and SBT
- Chapter 2. Structure and Configuration of Simple Build Tool (SBT)
- Directories in SBT
- The Importance of Good Infrastructure
- Triggered Executions
- What If I Need an Extra Repository?
- Format of Dependencies Line
- Updating Changes from the Build File
- Bringing Some Sources and Documentation
- Running SBT
- From the Shell
- Interactive Mode
- Basic Tasks
- Using the Scala Interpreter
- Knowing Your History
- Conclusion
- Chapter 3. ScalaTest
- Setting up ScalaTest in SBT
- Matchers
- Types of Matchers
- MustMatchers
- Exception Handling
- Informers
- GivenWhenThen
- Pending Tests
- Ignoring Tests
- Tagging
- Running Tags From the Command Prompt
- Running Tags in SBT
- Specifications
- FunSpec
- WordSpec
- FeatureSpec
- FreeSpec
- FlatSpec
- JUnitSuite
- TestNGSuite
- Fixtures
- Anonymous Objects
- Fixture Traits
- OneInstancePerTest
- Before and After
- Chapter 4. Specs2
- Setting Up Specs2 in SBT
- Unit Specification
- Matchers
- Simple Matchers
- String Matchers
- Relational Operator Matchers
- Floating-Point Matchers
- Reference Matchers
- Iterable Matchers
- Seq and Traversable Matchers
- Map Matchers
- XML Matchers
- Partial Function Matchers
- Other Matchers
- Acceptance Specification
- Chaining Tests
- Given/When/Then
- Data Tables
- Tagging
- Fixtures
- Chapter 5. Mocking
- EasyMock
- EasyMock with ScalaTest
- Mockito
- Mockito with Specs2
- ScalaMock
- Mocking Traits
- Mocking Classes
- Mocking Singleton Objects
- Mocking Companion Objects
- Mocking Functions
- Mocking Finals
- Chapter 6. ScalaCheck
- Properties
- Constraining Properties
- Grouping Properties
- Custom Generators
- Arbitrary
- Labeling
- ScalaCheck with ScalaTest
- Generators
- ScalaCheck with Specs2
- About the Author
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.