Commit Graph

11 Commits

Author SHA1 Message Date
Nikolay Vashchenko 80133b6770 Silence console output in tests
* Rspec callback that assigns IO objects to collect and silence all output of the SUT and Rake, driven by example metadata.
* Consistent cleanup in the test for print-config-variables option.
* Requiring necessary lib, which was missing in scm-resolver spec file.
2018-10-19 03:13:05 +02:00
William Johnston 012492e52a Fix Style/IndentationConsistency 2016-02-28 17:56:08 -06:00
William Johnston 3f6f98a118 Fix Style/Tab 2016-02-28 17:56:08 -06:00
William Johnston f290b6b76e Fix Style/IndentationConsistency 2016-02-28 17:56:08 -06:00
William Johnston ff9e0ac3a3 Fix Style/SpaceInsideBlockBraces 2016-02-28 17:56:07 -06:00
William Johnston b53e550fc0 Fix Style/StringLiterals 2016-02-28 17:56:07 -06:00
Rustam Zagirov 2c14957bf4 move to rspec 3 2014-08-12 22:52:37 +04:00
seenmyfate e7399f4692 Integration tests with Vagrant and Cucumber
This commit removes the existing 'local' integration tests and replaces
them with Cucumber features running against VMs.  At this stage,
some of the assertions are pending due to the limited nature of the
response returned when executing commands through Vagrant, but the
framework is there as a starting point to build upon.

To run the suite:

    bundle exec cucumber

During development, avoid scraping the VM between runs:

    bundle exec cucumber KEEPING_RUNNING=1

Ultimately I would like to see the `TestApp` helpers along with the Vagrant
integration packaged and available for use when developing gems that work with
Cap. For now though, this closes #641
2013-09-27 11:45:55 +01:00
seenmyfate 447e4ce950 Move requires to `capistrano/all`
This removes the need to set `require: false` in your Gemfile. Should
prevent the issues described in #582 reoccurring.

(also https://github.com/capistrano/rails/pull/15)
2013-09-13 09:34:28 +01:00
seenmyfate f5a585b3a4 Add integration tests for deploy task
This commit adds the outlines of a testing framework for Cap tasks.
Currently just the `cap install` and `cap deploy` tasks are covered. For
now, these tests can only be run if it is `ssh localhost` will work for
you and are currently excluded from the suite. It is my intention to
eventually replace the `sshkit` backend with a test backend, but for now
this is good enough to prevent simple regressions.
2013-06-16 13:08:15 +01:00
seenmyfate 687526930a installation - running cap install capifies app 2013-02-01 14:51:50 +00:00