Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ioleo
Copy link
Member

@ioleo ioleo commented Oct 18, 2019

  • Rename succeed to empty, to express its purpose.
  • Add scaladoc for MockSpec.
  • Add expectsNothing utility method.
  • Rename MockSpec to Expectation
  • Remove the need to for Managed[Nothing, Module] hint
  • Better API for constructing expecations
  • Drop Service container for tags
  • refactor ExpectationSpec to ZIO Test

@ioleo ioleo changed the title Mock improvements WIP: Mock improvements Oct 18, 2019
@ioleo ioleo mentioned this pull request Oct 18, 2019
10 tasks
@ioleo ioleo force-pushed the mock-improvements branch 5 times, most recently from edbadf6 to c4ace7c Compare October 20, 2019 21:34
@ioleo ioleo force-pushed the mock-improvements branch 2 times, most recently from b139f32 to 1c108d1 Compare October 20, 2019 21:49
@ioleo
Copy link
Member Author

ioleo commented Oct 20, 2019

Will provide updates to documentation as a seperate PR.

… API, drop Service container for method tags
@ioleo ioleo force-pushed the mock-improvements branch from 1c108d1 to 571a716 Compare October 20, 2019 22:09
@ioleo ioleo changed the title WIP: Mock improvements Mock improvements Oct 20, 2019
@ioleo
Copy link
Member Author

ioleo commented Oct 20, 2019

@adamgfraser Ready for review.

Copy link
Contributor

@adamgfraser adamgfraser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! It makes mocking easier to use, and I love the move to ZIO Test for the internal tests. A couple of questions / comments on the use of implicits and if we can make them a little less "magical". Other than that just a few minor typos.

@ioleo ioleo force-pushed the mock-improvements branch 3 times, most recently from dfce174 to b57e92a Compare October 21, 2019 20:34
@ioleo ioleo force-pushed the mock-improvements branch from b57e92a to b49e216 Compare October 21, 2019 21:05
@ioleo
Copy link
Member Author

ioleo commented Oct 22, 2019

@adamgfraser I think it's ready to be merged.

@adamgfraser adamgfraser merged commit 8cd3da5 into zio:master Oct 22, 2019
@ioleo ioleo deleted the mock-improvements branch October 22, 2019 15:02
ghostdogpr pushed a commit to ghostdogpr/scalaz-zio that referenced this pull request Nov 5, 2019
* Rename succeed to empty & add doc

* Rename MockSpec to Expectation, improve type inference, expose better API, drop Service container for method tags

* Refactor ExpectationSpec to ZIO Test

* Variance typos

* Code review

* Add shapeless attribution
Twizty pushed a commit to Twizty/zio that referenced this pull request Nov 13, 2019
* Rename succeed to empty & add doc

* Rename MockSpec to Expectation, improve type inference, expose better API, drop Service container for method tags

* Refactor ExpectationSpec to ZIO Test

* Variance typos

* Code review

* Add shapeless attribution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants