Skip to content

Commit e1d1141

Browse files
ofedorenevgeni
authored andcommitted
Use rake beaker for acceptance
1 parent a4fa665 commit e1d1141

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

moduleroot/CONTRIBUTING.md.erb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,18 +218,13 @@ and specifically the [section for running tests](https://github.com/mcanevet/rsp
218218
For more dependencies please see related information for picked variant.
219219
Additonal info can be found at [voxpupuli-acceptance](https://github.com/voxpupuli/voxpupuli-acceptance/#running-tests) which is used to run the tests.
220220

221-
3. For first (or clean) runs, run:
222-
- `bundle exec rake spec_clean && bundle exec rake spec_prep`
223-
224-
This will make sure all needed modules are prepared to be used in a VM.
225-
226-
4. Run the tests:
227-
- `BEAKER_HYPERVISOR=vagrant_libvirt bundle exec rspec`
221+
3. Run the tests:
222+
- `BEAKER_HYPERVISOR=vagrant_libvirt bundle exec rake beaker`
228223
- Use `bundle exec rspec spec/acceptance/my_test.rb -e "test"` to run a specific test as you'd usually do with `rspec`.
229224

230225
This will use `vagrant` and `libvirt` as the provider to create a VM and will run all tests there.
231226

232-
5. You can additionally specify:
227+
4. You can additionally specify:
233228
- `BEAKER_PUPPET_DEBUG=yes` to make Puppet more verbose.
234229
- `BEAKER_destroy=no` to leave the machine for further inspection in case of an error.
235230
- Use `cd .vagrant/beaker_vagrant_files/beaker_centos8* && vagrant ssh` to SSH into VM.

0 commit comments

Comments
 (0)