More Related Content
Similar to PBT for Services in Scala Using Scalacheck
Similar to PBT for Services in Scala Using Scalacheck (20)
PBT for Services in Scala Using Scalacheck
- 5. why are we here?
Go faster! Don't break things!
- 7. why do we test?
confidence that it works
define "it works"
drive good design
- 11. what will we do today?
Learn prerequisites
See the application under test
Write a test together
- 19. val house = Item("house")
case class Item(name : String)
listOfItems.map {
item =>
item.name
}
item.name
- 24. for {
item <- listOfItems
} yield item.name
listOfItems.map {
item =>
item.name
}
- 25. for {
item <- listOfItems
} yield item.name
for-comprehension
- 26. for {
item <- listOfItems
} yield item.name
List[Item]
List[String]