Skip to content

gwu-libraries/scholarspace-5-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

168 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScholarSpace

Contributing

If you're working on a PR for this project, create a feature branch off of main.

Production Environment

  • Update environment variables:
    • RAILS_ENV=production
    • METADATA_DATABASE_NAME=scholarspace_metadata_production (todo: fix this)
    • PUMA_ENV=production (todo: fix this)
  • Update docker-compose.yml to include docker-compose-prod.yml and not docker-compose-dev.yml
  • Once all containers are healthy, run docker exec rails /bin/sh -lc "bundle exec rails db:seed" to create default collection types, admin set, and an admin user (email and password set in .env)

Development Environment

  • Update environment variables:
  • RAILS_ENV=development
  • METADATA_DATABASE_NAME=scholarspace_metadata_development (todo: fix this)
  • PUMA_ENV=development (todo: fix this)
  • Update docker-compose.yml to include docker-compose-dev.yml and not docker-compose-prod.yml

Tests

  • To run tests, launch the application in development mode.
  • Connect to the rails container (docker exec -it rails /bin/sh)
  • Run bundle exec rspec

At the moment, there are 8 failing tests. Issue appears to be more with the test setup, so consider 8 failing tests passing for now, but needs to be fixed at some point.

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

3 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors