Yii Framework Forum: Yii And Production Tests - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii And Production Tests Testing Yii on prodaction, BDD, Behat Rate Topic: -----

#1 User is offline   elrond 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 27-March 12

Posted 17 December 2012 - 03:51 AM

Hello

I'm using BDD (Behat) with Yii. In order to make tests on separte db i'am using index-test.php in test base url. (index-test.php bootsrtaps testing db etc....)

But it's sad that you should delete index-test.php when in production.....so what about running tests in production (after deploment)???

I could use somthing like post deploment script which would copy index-test.php for a moment, run all test and remove index-test.php.....but maybe there are other ways to achive thsi goal ????
0

#2 User is offline   yugene 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 513
  • Joined: 08-August 09

Posted 18 December 2012 - 04:27 AM

Hi,

I usually use one more installation (in addition to local and production versions) -- test (staging). It allows perform tests at production environment not actually updating production version yet.
0

#3 User is offline   elrond 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 27-March 12

Posted 19 December 2012 - 04:40 AM

you mean:

devel --> production ---- test (staging)
-
--- production (real)


I assume test staging is seperate instance of project but put on production server ???
0

#4 User is offline   yugene 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 513
  • Joined: 08-August 09

Posted 19 December 2012 - 05:34 AM

Sorry, didn't get your scheme. Yes, I mean one more application installation on production server - usually I use it for tests and to check changes with the client before moving them to production.
If you use VCS (I use this scheme with git), then it's convenient to have two main branches. Dev branch is deployed to Staging, Master branch is deployed to Production, having all current changes in temporary branches that are merged to Dev branch first (a bit more sophisticated approach is described at http://nvie.com/post...ranching-model/ ). This is especially convenient if you have auto-deploy configured.
0

#5 User is offline   elrond 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 27-March 12

Posted 20 December 2012 - 03:09 AM

thank's for your advice

think i will choose having staging with production
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users