By analyzing the content of the current swift file, this extension will be able to generate boiler plate to more easily write your unit test.
After calling it you will need to paste the boiler plate from your clipboard to the intended file.
- Create boiler plate for classes and structures you want to test
- Structure your test with 3 closures: given, when and then
- Record every event sent by Publisher
Tips:
- If necessary you should edit the Given structure to avoid repetition