Corona TDD with busted "module 'storyboard' not found"

1.1k Views Asked by At

I am writing an app in Corona and coming from a TDD background I wanted to write some unit tests for it. I installed busted via luarocks and most stuff seems to be working fine(wrote a couple small modules and test suites for each one). I begin to run into issues when the module I am testing requires a Corona library like storyboard, which results in the error "module 'storyboard' not found"

Does anyone Corona TDD experience have any suggestions? Perhaps a directory containing the Corona modules is in the Lua search path?

Thanks in advance!

1

There are 1 best solutions below

2
On

Check this out: https://github.com/chris-allnutt/unit-tested-corona

You can find a working example there.

I personally had problems installing busted, so I went with LunaTest instead and things are working great with Corona: LunaTest and Corona