Commit Graph

74 Commits

Author SHA1 Message Date
Tadeas Kriz c6baeda34c Add first draft of a new Mock initialization DSL. 2018-07-06 15:39:08 +02:00
Tadeas Kriz 59f2240831 Reintroduce support for pre-0.11.0 Cuckoo spies. 2018-06-05 16:35:51 +02:00
Jason Gavris 645ba65c73 Add test for sub protocol method 2018-03-23 18:35:49 +01:00
Arjan Duijzer 614dfaa515 Added test-cases for excluding Classes and Protocols from Mock stub generation 2018-01-02 11:21:21 +01:00
Arjan Duijzer eaab7db26d Added ParameterMatcher for (optional) throwing closures and optionals, e.g. anyThrowingClosure(), anyOptionalThrowingClosure and null()
Added Acceptance test for inheritance stubbing and verifying
2017-12-29 14:14:46 +01:00
Arjan Duijzer f0f31bd0e9 Adding support for overloaded method names 2017-12-29 10:55:11 +01:00
Tadeas Kriz 0f52ceef7e Add a few more tests. 2017-11-15 00:16:23 +01:00
Tadeas Kriz 8e49eefd4d Remove TemplateEncoder and change Spy behavior. 2017-11-14 22:24:18 +01:00
Tadeas Kriz 0ecde3fdcd Remove workspace and improve project setup. 2017-11-14 17:03:12 +01:00
Tadeas Kriz eb1992abdb Add Array and Set equalTo functions when Element is Equatable. 2017-11-09 19:55:52 +01:00
Tadeas Kriz 3adcde2fc0 Fix warnings. 2017-11-09 16:05:28 +01:00
Tadeas Kriz 52dcdbf17f Fix #151. 2017-10-17 11:55:16 +02:00
KaosDG 75be1e38d7 Adjusted the logic for determining if a closure is implicitly escaping (optional closure)
Adjusted the nested Closure logic so that we can pass whether the parent method `throws`
Adjusted the Mock.swift.stencil to account for the above, and some cleanup
Added a few more test cases in TestedSubclass.swift for closures that throw, etc.
2017-10-02 19:40:03 +02:00
KaosDG 85da0d9fb1 added open/close nested closure filters for the withoutActuallyEscaping(…) portion.
cleaned up the mock stencil a little.
added a sample multi-closure method
2017-10-02 19:40:03 +02:00
KaosDG 4ca15ff61d working on the generated mocks.
Closures are a problem :(
2017-10-02 19:40:03 +02:00
Tadeas Kriz 12e8cdcc8b Fix #118. 2017-04-27 15:36:26 +02:00
Tadeas Kriz 9c09ea19d8 Fix crash when using non-ASCII characters. 2017-04-27 14:46:58 +02:00
Tadeas Kriz 129ba1b9d5 Bump version. 2017-04-19 23:04:22 +02:00
Tadeas Kriz 2f90d0276a Add to compilable and green test state. 2017-04-02 18:03:31 +02:00
Tadeas Kriz b035408a6b WIP: Add objc support. 2017-02-24 20:07:52 +01:00
Tadeas Kriz 61ab7df415 Fix issues from merge. 2017-02-24 18:08:58 +01:00
Tadeas Kriz 35d18f6eb5 Add stencil templates to replace Generator. 2017-02-24 17:53:17 +01:00
Valerij Gerasimenko 78330f15dc rename manager to cuckoo_manager 2017-02-24 17:49:45 +01:00
Louis van der Stam 463ed7a6c1 Generate empty init functions when generating a mock from a protocol. 2017-02-23 15:53:36 +01:00
Arjan Duijzer 4c86636835 Added support for mocking Inherited types 2017-02-23 15:39:53 +01:00
Miguel Bassila 953f4bf9ad Add open class to be generated by Cuckoo 2017-02-14 16:35:09 +01:00
Tadeas Kriz eb569cda77 Bump version and fill changelog. 2017-01-16 17:03:08 +01:00
Louis van der Stam b0661e94b2 Fixed the access modifier and added a public class with public members… 2017-01-16 16:49:23 +01:00
Louis van der Stam a6d60fadfd Added class from which code that doesn't compile is generated 2017-01-16 16:16:42 +01:00
Louis van der Stam efa6e55203 Moved the files fed into the generator out of the test project and fixed the tests. This reflects a common test configuration. 2017-01-16 16:16:42 +01:00
Louis van der Stam 4448feeebb Added function with constructed default values. Don’t know how to properly test this. 2017-01-16 15:46:05 +01:00
Louis van der Stam 25a6a217b0 Added some to the tested class and inspected the generated code 2017-01-13 15:48:27 +01:00
Filip Dolník 5094d166d8 Fix support of closures and unwrapped optionals. 2016-12-18 21:31:41 +01:00
Filip Dolník 36dc88e877 Fix PR issues. 2016-09-23 17:47:08 +02:00
Filip Dolník a823f9bc22 Fix rebase errors. 2016-09-22 10:08:44 +02:00
Filip Dolník c4a7e16d69 Add stub objects. 2016-09-22 10:01:21 +02:00
Filip Dolník b3f6d78c8d Add support for Swift 3. 2016-09-22 10:00:38 +02:00
Filip Dolník f684533f03 Convert code to Swift 3. 2016-09-22 10:00:38 +02:00
Tadeas Kriz 2c545b932b Add generation of no-impl stubs. 2016-09-20 22:45:29 +02:00
Filip Dolník 4a2a72fac9 Fix spies. 2016-09-07 14:37:18 +02:00
Filip Dolník c7dd503669 Fix #54. 2016-09-07 12:57:45 +02:00
Tadeas Kriz d8b65f542f Fix #55. 2016-08-31 15:54:44 +02:00
Filip Dolník a4df886f18 Fix missing Generated folder. 2016-08-26 15:02:03 +02:00
Filip Dolník 3f7fd09c61 Remove Description. 2016-07-07 18:50:27 +02:00
Filip Dolník 39b233b766 Refactor fail description. 2016-07-07 18:48:49 +02:00
Filip Dolník 05cb848704 Refactor tests. 2016-07-05 18:29:10 +02:00
Filip Dolník 0b941cb609 Refactor Matchers. 2016-07-04 16:22:53 +02:00
Filip Dolník 9a06f24f71 Refactor Description. 2016-07-04 09:33:57 +02:00
Filip Dolník e22fc7d283 Fix bug with calling unstubbed methods. 2016-06-29 15:22:45 +02:00
Filip Dolník 9d3388b066 Add ArgumentCapture. 2016-06-29 09:46:18 +02:00