Class: Brut::CLI::Apps::Test::E2e

Inherits:
Run show all
Defined in:
lib/brut/cli/apps/test.rb

Instance Attribute Summary

Attributes inherited from Commands::BaseCommand

#parent_command

Instance Method Summary collapse

Methods inherited from Run

#args_description, #default_rack_env, #opts, #rspec_command, #run

Methods inherited from Commands::BaseCommand

#accepts, #args_description, #argv, #bootstrap?, #commands, #default_rack_env, #delegate_to_command, #env, #execute, #name, #options, #opts, #puts, #run, #stdin, #system!, #theme

Instance Method Details

#descriptionObject



88
# File 'lib/brut/cli/apps/test.rb', line 88

def description = "Run end-to-end (browser) tests"

#detailed_descriptionObject



98
99
100
# File 'lib/brut/cli/apps/test.rb', line 98

def detailed_description = %{
Runs all end-to-end tests for the app, or runs a subset of end-to-end tests using RSpec-style syntax. This will run bin/test-server first, so if that fails for some reason, no tests are run.
}

#env_varsObject



89
90
91
92
93
# File 'lib/brut/cli/apps/test.rb', line 89

def env_vars = super + [
  [ "E2E_RECORD_VIDEOS","If set to 'true', videos of each test run are saved in `./tmp/e2e-videos`" ],
  [ "E2E_SLOW_MO","If set to, will attempt to slow operations down by this many milliseconds" ],
  [ "E2E_TIMEOUT_MS","ms to wait for any browser activity before failing the test. And here you didn't think you'd get away without using sleep in browse-based tests?" ],
]

#rebuild_after_by_default?Boolean

Returns:

  • (Boolean)


97
# File 'lib/brut/cli/apps/test.rb', line 97

def rebuild_after_by_default? = true

#rebuild_by_default?Boolean

Returns:

  • (Boolean)


96
# File 'lib/brut/cli/apps/test.rb', line 96

def rebuild_by_default?       = true

#rspec_cli_argsObject



95
# File 'lib/brut/cli/apps/test.rb', line 95

def rspec_cli_args = "--tag e2e"