Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Loading in …3
×
1 of 64

Specs2 whirlwind tour at Scaladays 2014

6

Share

Download to read offline

Presentation of specs2 functionalities from simple ones to less well-known + overview of the next release

Related Books

Free with a 30 day trial from Scribd

See all

Specs2 whirlwind tour at Scaladays 2014

  1. 1. Specs2 2.3 whirlwind tour ScalaDays
  2. 2. Whirlwind tour Acceptance/Unit Matchers Quick start Mockito G/W/T ScalaCheck Contexts Pending until fixed Command line Failures Scripts Snippets DataTables Execution Next?
  3. 3. Bridging the gap informal formal extensive refactored text code readable executable current versioned
  4. 4. Bridging the gap
  5. 5. 5 First steps
  6. 6. Quick start HelloWorldSpec.scala
  7. 7. With sbt
  8. 8. With IntelliJ
  9. 9. Whirlwind tour Acceptance/Unit Quick start
  10. 10. Acceptance / Unit
  11. 11. Whirlwind tour Acceptance/Unit Matchers Quick start
  12. 12. Equality
  13. 13. Typed equality
  14. 14. Differences
  15. 15. Differences
  16. 16. Main types
  17. 17. Traversable
  18. 18. Traversable
  19. 19. Your own
  20. 20. And others… xml files case classes …maps termination
  21. 21. Whirlwind tour Acceptance/Unit Matchers Quick start Execution
  22. 22. Expectations
  23. 23. Parallel by default
  24. 24. Control the execution
  25. 25. Control the execution
  26. 26. Isolation
  27. 27. Selection
  28. 28. Selection
  29. 29. Selection
  30. 30. Whirlwind tour Acceptance/Unit Matchers Quick start Contexts Execution
  31. 31. Before
  32. 32. Around
  33. 33. Fixture
  34. 34. Applications Database setup/cleanup Web application context Timing Contexts chaining
  35. 35. 35 Full speed
  36. 36. Whirlwind tour Matchers Quick startScalaCheck Contexts Execution Acceptance/Unit
  37. 37. ScalaCheck
  38. 38. ScalaCheck
  39. 39. Whirlwind tour Acceptance/Unit Matchers Quick startScalaCheck Contexts DataTables Execution
  40. 40. DataTables
  41. 41. Whirlwind tour Acceptance/Unit Matchers Quick start Mockito ScalaCheck Contexts DataTables Execution
  42. 42. Mockito
  43. 43. 43 Moonwalk!
  44. 44. Whirlwind tour Acceptance/Unit Matchers Quick start Mockito G/W/T ScalaCheck Contexts DataTables Execution
  45. 45. Given / When / Then
  46. 46. Given / When / Then
  47. 47. Whirlwind tour Acceptance/Unit Matchers Quick start Mockito G/W/T ScalaCheck Contexts Scripts DataTables Execution
  48. 48. No more operators!
  49. 49. Groups
  50. 50. Groups
  51. 51. Whirlwind tour Acceptance/Unit Matchers Quick start Mockito G/W/T ScalaCheck Contexts Command line Scripts DataTables Execution
  52. 52. Command-line arguments
  53. 53. Whirlwind tour Acceptance/Unit Matchers Quick start Mockito G/W/T ScalaCheck Contexts Command line Failures Scripts DataTables Execution
  54. 54. Detailed failures
  55. 55. Whirlwind tour Acceptance/Unit Matchers Quick start Mockito G/W/T ScalaCheck Contexts Pending until fixed Command line Failures Scripts DataTables Execution
  56. 56. Don’t have time to fix it?
  57. 57. Whirlwind tour Acceptance/Unit Matchers Quick start Mockito G/W/T ScalaCheck Contexts Pending until fixed Command line Failures Scripts Snippets DataTables Execution
  58. 58. Snippets
  59. 59. Auto examples
  60. 60. 60 Fly
  61. 61. Whirlwind tour Acceptance/Unit Matchers Mockito G/W/T ScalaCheck Contexts Pending until fixed Command line Failures Scripts Snippets DataTables Execution Next?
  62. 62. Specs2 3.0 Presentation at LambdaJam 2014 “Online” specifications More library-like Optional DSLs Modular reporters Some API breaks No nested specs
  63. 63. How can you help? Eclipse plugin Html reporting Web testing
  64. 64. Whirlwind tour Acceptance/Unit Matchers Mockito G/W/T ScalaCheck Contexts Pending until fixed Command line Failures Scripts Snippets DataTables Execution Thanks!

Editor's Notes

  • This gap is real and needs to be addressed. There’s no good solution, only a compromise
  • Use ThrownExpectations in acceptance specs or AllExpectations to get all the expectations
  • Use ThrownExpectations in acceptance specs or AllExpectations to get all the expectations
  • API breaks like TimeConversions
  • ×