GithubHelp home page GithubHelp logo

cuckoodemo's Introduction

Cuckoo Demo

Introduction

Cuckoo is a mocking framework for Swift projects.

The main advantage is that it generates mocks straight from source code, which speeds up development time and makes writing tests much more enjoyable.

See also the Cuckoo homepage

Project structure

Cuckoo is added via Cocoapods.

It is invoked from the Scripts/run_cuckoo.sh, because it's sometimes convenient to be able to run it even if the Xcode project fails to build.

run_cuckoo.sh is added as a main target run script phase. This helps to keep mocks and test code up to date when doing extensive development.

run_cuckoo.sh

Needs minimal editing to set directories up when adding to a new project.

It searches the project for swift files containing // cuckoo: generate. All files containing the string get passed to the cuckoo script.

For swiftlint: disable all and swiftformat: disable all are also added to the generated file, so Xcode warnings are supressed and no formatting is done on the file.

Using Cuckoo output in tests

Using a wrapper helps avoiding import Cuckoo in all the test files and also setup code can be reused.

Acknowledgements

Thank you to all the cuckoo contributors for your great work!

cuckoodemo's People

Contributors

andreinagy avatar

Stargazers

Pedro Guimarães avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.