Skip to content

tyler36/ddev-serverspec

Repository files navigation

add-on registry tests last commit release

DDEV Serverspec

Overview

This add-on integrates Serverspec into your DDEV project.

This add-on installs the required serverspec packages inside the web container.

Installation

ddev add-on get tyler36/ddev-serverspec
ddev restart

After installation, make sure to commit the .ddev directory to version control.

Usage

Command Description
ddev serverspec-init Scaffold tests
ddev serverspec Run serverspec tests

command: serverspec-init

ddev serverspec-init starts a wizard to generate required files and scaffold an example test.

The following is an example that generates that confirms a service is listening on port 80.

$ ddev serverspec-init
Select OS type:
  1) UN*X
  2) Windows
Select number: 1

Select a backend type:
  1) SSH
  2) Exec (local)

Select number: 2
 + spec/
 + spec/localhost/
 + spec/localhost/sample_spec.rb
 + spec/spec_helper.rb
 + Rakefile
 + .rspec

command: serverspec

ddev serverspec runs available serverspec tests.

The command accepts flags and arguments, as required.

For example: to stop at the first failing test.

ddev rspec --fail-fast

Credits

Contributed and maintained by @tyler36

About

Intergrate serverspec into a DDEV project

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •