Removed testc and testm; made the requested changes to the order of the scripts in the summary section

This commit is contained in:
Jason Hsu
2020-09-25 20:35:24 -05:00
parent 2b5a875bac
commit ea9d5f7c5a
3 changed files with 6 additions and 44 deletions

View File

@@ -44,11 +44,11 @@ $ docker/server
## Script Summary
* docker/build: This script builds the Docker containers specified for this app, seeds the database, and logs the screen output for these operations. After you use "git clone" to download this repository, run the docker/build script to start the setup process.
* docker/cop: This script runs RuboCop.
* docker/exec: Use this script to run commands within the Docker container. If you want shell access, enter "docker/exec bash". To execute "ls -l" within the Docker container, enter "docker/exec ls -l".
* docker/nuke: Use this script to delete all Docker images and containers. This fully resets your Docker setup and is useful for making sure that the setup procedure specified for this app is complete.
* docker/seed: Use this script to seed the database. Please note that this process is not compatible with simultaneously running the Rails server or tests.
* docker/server: Use this script to run this app in the Rails server. This script executes the "docker-compose up" command and logs the results. If all goes well, you will be able to view this app on your local browser at http://localhost:3000/.
* docker/test: Use this script to run the entire test suite.
* docker/testc: Use this script to run just the controller tests.
* docker/testm: Use this script to run just the model tests.
* docker/exec: Use this script to run commands within the Docker container. If you want shell access, enter "docker/exec bash". To execute "ls -l" within the Docker container, enter "docker/exec ls -l".
* docker/seed: Use this script to seed the database. Please note that this process is not compatible with simultaneously running the Rails server or tests.
* docker/nuke: Use this script to delete all Docker images and containers. This fully resets your Docker setup and is useful for making sure that the setup procedure specified for this app is complete.
* docker/cop: This script runs RuboCop.

View File

@@ -1,19 +0,0 @@
#!/bin/bash
# This script runs just the controller tests.
echo '--------------------------------------------------------------'
echo 'BEGIN: docker-compose run web bundle exec rake db:test:prepare'
echo '--------------------------------------------------------------'
docker-compose run web bundle exec rake db:test:prepare
echo '------------------------------------------------------------'
echo 'END: docker-compose run web bundle exec rake db:test:prepare'
echo '------------------------------------------------------------'
echo '----------------------------------------------------------'
echo 'BEGIN: docker-compose run web bundle exec spec/controllers'
echo '----------------------------------------------------------'
docker-compose run web bundle exec rspec spec/controllers
echo '--------------------------------------------------------------'
echo 'END: docker-compose run web bundle exec rspec spec/controllers'
echo '--------------------------------------------------------------'

View File

@@ -1,19 +0,0 @@
#!/bin/bash
# This script runs just the model tests.
echo '--------------------------------------------------------------'
echo 'BEGIN: docker-compose run web bundle exec rake db:test:prepare'
echo '--------------------------------------------------------------'
docker-compose run web bundle exec rake db:test:prepare
echo '------------------------------------------------------------'
echo 'END: docker-compose run web bundle exec rake db:test:prepare'
echo '------------------------------------------------------------'
echo '-----------------------------------------------------'
echo 'BEGIN: docker-compose run web bundle exec spec/models'
echo '-----------------------------------------------------'
docker-compose run web bundle exec rspec spec/models
echo '---------------------------------------------------------'
echo 'END: docker-compose run web bundle exec rspec spec/models'
echo '---------------------------------------------------------'