Spec: do not clean fixtures (train ++)
This commit is contained in:
13
Hacking.md
13
Hacking.md
@@ -15,3 +15,16 @@
|
|||||||
1. cd openstack-puppet-ci
|
1. cd openstack-puppet-ci
|
||||||
2. bundle install (or create a rvm : rvm use ruby-1.9.3-p385;rvm gemset use puppet-dev)
|
2. bundle install (or create a rvm : rvm use ruby-1.9.3-p385;rvm gemset use puppet-dev)
|
||||||
3. rake lint
|
3. rake lint
|
||||||
|
|
||||||
|
### Run spec test from a train (offline rake spec)
|
||||||
|
|
||||||
|
The rake task « spec » is an alias to `spec_prep` + `spec_standalone` + `spec_clean`.
|
||||||
|
|
||||||
|
If you don't have a internet connection, just run before (in order to populate
|
||||||
|
fixtures):
|
||||||
|
|
||||||
|
> rake spec_prep
|
||||||
|
|
||||||
|
And then in your train:
|
||||||
|
|
||||||
|
> rake spec_standalone
|
||||||
|
3
Rakefile
3
Rakefile
@@ -19,4 +19,5 @@ PuppetLint.configuration.send('disable_nested_classes_or_defines')
|
|||||||
PuppetLint.configuration.send('disable_selector_inside_resource')
|
PuppetLint.configuration.send('disable_selector_inside_resource')
|
||||||
|
|
||||||
task(:default).clear
|
task(:default).clear
|
||||||
task :default => [:spec, :lint]
|
task :default => [:spec_prep, :spec_standalone, :lint]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user