rspec project -vigoroom date 9 apr :: How to set up any Project in Rails

 git clone https://arvindkushwah9@bitbucket.org/proactive/ywroom.git

note : project repository is required to set up the project initially

Setup Project :: vigoroom : rspec for testing 

step 01: bundle

step 02: check the database after opening project in sublime at database.yml

step 03: check the database in application.yml also

step 04: made application.yml in config given by dhamendra in skype

step 05: made database.yml in config given by dharmendra in skype

step 06: rake db:create

step 07: rake db:migrate

step 08: change the username and password : root or postgress for mysql or postgress which is in your pc.

step 09: Import the Database  : dharmendra send it at the skype and it will take approx an hour very big database.

step 10: copy paste schema

step 11: rake db:schema:load

step 12: migation was error in rake db:migrate

mysql -u root -p ywroom_dev1 < /home/

mysql -u root -p ywroom_dev1 < /home/dwijendra/official_projects/vigoroom-rspec/
fittac_dev_09_04_2021.sql  ywroom/

mysql -u root -p ywroom_dev1 < /home/dwijendra/official_projects/vigoroom-rspec/fittac_dev_09_04_2021.sql
Enter password: 

step 13: rake db:seed

                          ............................................................................................................

Some Notice::

master par kabhi bhi push nai karna jo branch apki hai hamesha usi par push karna hai 

master se and coverage_development jo ki main branch hai usse daily pull lena hai...

Branches::::::::

Recent /Current Branch ::   new_branch_rspec

My Old Branch :: controller_rspec

Some Instructions::

Some Special Commands::

Step 0:::::  for login mysql::

git pull origin coverage_file

git pull origin master

rake db:drop RAILS_ENV=test

rake db:create RAILS_ENV=test

rake db:schema:load RAILS_ENV=test

rake db:seed RAILS_ENV=test'

is neeche diye gaye command se mysql mein enter ho jayenge....

mysql -u root -p     :  For login mysql password : root : your laptop mysql password

SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

upar wale do command chalane ke bad bahar nikalna hai 

fir yeh neeeche wala command chaalana hai

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql    ::::::::::: password : root

ab rspec chalana hai ::::::  rspec



git checkout -b new_branch_rspec


git log -p Gemfile

git pull origin rspec_development 

git pull origin test_case_development 

git pull origin coverage_file

git pull origin master

git branch -a

git fetch -a

git checkout config/database.yml

git checkout config/environments/production.rb

rake db:schema:load RAILS_ENV=test


http://localhost:3001/coaching/document_library  ====== this is the command to see the vigoroom document library

Rspec par kam kaise shuru karna hai 

1. write rspec at command 

2. file:///home/dwijendra/official_projects/vigoroom-rspec/ywroom/coverage/index.html#_AllFiles

check in yroom coverage index.html page.

3. 




Comments

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5