Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ ARTIFACT_DESTINATION_FILE ?= ./tmp/idp.tar.gz
watch_events \
docker_setup \
download_acuant_sdk \
fast_setup \
fast_test \
help \
lint \
lint_analytics_events \
Expand Down Expand Up @@ -59,9 +57,6 @@ all: check
setup $(CONFIG): config/application.yml.default ## Runs setup scripts (updates packages, dependencies, databases, etc)
bin/setup

fast_setup: ## Abbreviated setup script that skips linking some files
bin/fast_setup

docker_setup: ## Setup script for Docker development
bin/docker_setup

Expand Down Expand Up @@ -190,10 +185,6 @@ test_serial: export RAILS_ENV := test
test_serial: $(CONFIG) ## Runs RSpec and yarn tests serially
bundle exec rake spec && yarn test

fast_test: export RAILS_ENV := test
fast_test: ## Abbreviated test run, runs RSpec tests without accessibility specs
bundle exec rspec --exclude-pattern "**/features/accessibility/*_spec.rb"

tmp/$(HOST)-$(PORT).key tmp/$(HOST)-$(PORT).crt: ## Self-signed cert for local HTTPS development
mkdir -p tmp
openssl req \
Expand Down
49 changes: 0 additions & 49 deletions bin/fast_setup

This file was deleted.

35 changes: 18 additions & 17 deletions docs/local-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,30 +77,31 @@ different options of the authentication request, such as AAL or IAL.

### Running tests locally

Login.gov uses the following tools for our testing:
Login.gov uses the following tools for our testing:

- [RSpec](https://relishapp.com/rspec/rspec-core/docs/command-line)
- [Mocha documentation](https://mochajs.org/)
- [RSpec](https://relishapp.com/rspec/rspec-core/docs/command-line)
- [Mocha documentation](https://mochajs.org/)

To run our full test suite locally, use the following command:
To run our full test suite locally, use the following command:

```
$ make test
```
```
$ make test
```

Use the following command to run a subset of our test suite, excluding slower tests:
Running the full test suite takes a very long time, so usually you'll want to run the individual
test files or folders you're interested in:

```
$ make fast_test
```
```
$ bundle exec rspec spec/i18n_spec.rb
```

Check out our Makefile commands and learn more about how you can customize this command to run specific tests using rspec: https://github.com/18F/identity-idp/blob/main/Makefile#L41
Check out our Makefile commands and learn more about how you can customize this command to run specific tests using rspec: https://github.com/18F/identity-idp/blob/main/Makefile#L41

To test a specific spec file with rspec, you may need to add the following configuration to `/config/application.yml` so the tests do not crash:
```
test:
rack_timeout_service_timeout_seconds: 9_999_999_999
```
To test a specific spec file with rspec, you may need to add the following configuration to `/config/application.yml` so the tests do not crash:
```
test:
rack_timeout_service_timeout_seconds: 9_999_999_999
```

#### Showing the Browser

Expand Down