Class: Thincloud::Test::TestGenerator

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/thincloud/test/test_generator.rb

Instance Method Summary collapse

Instance Method Details

#testify!(opts = {}) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/thincloud/test/test_generator.rb', line 11

def testify!(opts = {})
  setup_minitest if opts.fetch(:minitest, true)

  copy_file "support/minitest_reporters.rb",
    "test/support/minitest_reporters.rb"

  copy_file "support/mocha.rb", "test/support/mocha.rb"

  copy_file "test.rake", "lib/tasks/test.rake"

  copy_file "Guardfile"

  setup_ci

  update_gitignore

  say_status "", ""
  say_status "success", "thincloud-test has finished."
  say_status "", "Customize .travis.yml and test/ci/* for your project."
end