Welcome Guest, Not a member yet? Register   Sign In
can we use a cron (code with time specification) to use phpunit
#1

[eluser]sidhartha[/eluser]
hi all,
is it possible to run a phpunit test for an application using a corn at a certain time? for example i want to run my test cases at 3 am. automatically. is there anything to make it happen?


apart from this i want to create log files for each test and store it in all formats like json,xml and html. please somebody guide me to achieve this.

for logging and documentation there are tips in the chapter 19 of phpunit (http://www.phpunit.de/manual/current/en/logging.html) but presently i am not able to implement it perfectly.
#2

[eluser]BrianL[/eluser]
Yes it is possible.

Purpose of unit tests is for test-based development, or a testing phase so should not be necessary to test during production. However if desired you can run a simple cronjob which will pipe output to a text file for logging, or even manipulate the database.

It will require some finesse and care to avoid dangerous results however.
#3

[eluser]sidhartha[/eluser]
hi Brian, thanks for your reply. can u elaborate it further ? if you know any link with this topic, do share here.




Theme © iAndrew 2016 - Forum software by © MyBB