> For the complete documentation index, see [llms.txt](https://docs.alistairtweed.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.alistairtweed.com/rails/minimal-rails/testing.md).

# Testing

## Test

`--skip-test [-T]`

{% hint style="info" %}
Test will add a folder: `test`
{% endhint %}

{% hint style="info" %}
When Test is disabled, `generators.system_tests` should be set to `nil`
{% endhint %}

```ruby
# config/application.rb

require 'rails/test_unit/railtie'

class Application < Rails::Application
  config.generators.system_tests = nil
end
```

```ruby
# Gemfile

group :test do
  gem 'capybara', '>= 2.15'
  gem 'selenium-webdriver'
  gem 'webdrivers'
end
```

## System Test

`--skip-system-test`

{% hint style="info" %}
System Test will add a folder: `test/system`
{% endhint %}

{% hint style="info" %}
When System Test is disabled, `generators.system_tests` should be set to `nil`
{% endhint %}

```ruby
# config/application.rb

class Application < Rails::Application
  config.generators.system_tests = nil
end
```

```ruby
# test/application_system_test_case.rb

require 'test_helper'

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
  driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
end
```

```ruby
# Gemfile

group :test do
  gem 'capybara', '>= 2.15'
  gem 'selenium-webdriver'
  gem 'webdrivers'
end
```
