This patch moves some boilerplate setup code into custom spock
extensions. This patch adds two extensions that provide a clean
interface for testing paket and paket unity project integrations:
@PaketDependency
@PaketUnity
@PaketDependency
Is a resource extension which setups a paket project.
It will create a paket.dependendies along with a paket.lock file and
stub cs files in packages directory. This extensions should be
updated for future use in other tests (don't create a lock file,
specify sources, etc).
Description
This patch moves some boilerplate setup code into custom spock extensions. This patch adds two extensions that provide a clean interface for testing paket and paket unity project integrations:
@PaketDependency
Is a resource extension which setups a paket project. It will create a
paket.dependendies
along with apaket.lock
file and stubcs
files inpackages
directory. This extensions should be updated for future use in other tests (don't create a lock file, specify sources, etc).The annotated field will turn into a an Object of
PaketDependencySetup
It is possible to override and regenerate the dependencies during test runtime.@PaketUnity
The paket unity extension creates a mock setup for unity. Each field annotated with
@PaketUnity
will generate a mock unity project.The annotated field will turn into a an Object of
PaketUnitySetup
It is possible to override and regenerate the references during test runtime.Changes
@PaketDependency
spock test extension@PaketUnity
spock test extension integration specs