lazybones icon indicating copy to clipboard operation
lazybones copied to clipboard

Make it easy to test templates

Open pledbrook opened this issue 11 years ago • 2 comments

The integration test framework should be made available for template authors so that they can easily write tests.

pledbrook avatar Aug 02 '13 15:08 pledbrook

+1

ingorichter avatar Aug 02 '13 16:08 ingorichter

There are a couple of unique challenges here. The Gradle plugin already has the ability to install the templates in the local Lazybones cache, so that's not a problem. But we need some way of sharing AbstractFunctionalSpec between the integration tests of the lazybones-app project and the lazybones-gradle-plugin package.

We also need a way to specify a Lazybones installation to use for each test run. What if a template developer wants to run the tests against multiple versions of Lazybones? Perhaps different Lazybones versions will result in different behaviour, such as one version resulting in a LazybonesScriptException due to detected incompatibilities.

pledbrook avatar Aug 09 '13 15:08 pledbrook