You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment you can test ALL with the autotest - files.
but what if you just want to test your current test and you need the autoloader and the test enviroment? If you want to test your tests before upload...
Maybe with this feature it's simplier to test new commits. And if it's simple you can say "new commits only with tests" ...
@DeepDiver1975 the autotest-file is from you... can you create a second one for single tests with parameters which funtion to test?
@IMM0rtalis the easiest solution is most probably to pass the args from autotest.sh on to the phpunit call.
(In case the first parameter is the database this one has to be stripped)
well.. to be honest... the priority in the company i am working for is atm at something different... and tomorrow i am in spain for two weeks :D so i have time in the middle of july :-/ i opened this ticket because i though you can fix this fast... maybe i must do this in my spharetime in july...
Activity
DeepDiver1975 commentedon Jun 26, 2013
@IMM0rtalis the easiest solution is most probably to pass the args from autotest.sh on to the phpunit call.
(In case the first parameter is the database this one has to be stripped)
Feel free to give that a try. THX
fsmeier commentedon Jun 26, 2013
but then i don't have the test enviroment... like autoconfig, test-db etc ?
i started this thread because butonic and I had similiar problems :-/
DeepDiver1975 commentedon Jun 26, 2013
There is nothing more you need
fsmeier commentedon Jun 26, 2013
here the situation:
with your solution i just can test all tests with sqlite as example.. but not just the tests in goodTests.php with any db-system
DeepDiver1975 commentedon Jun 26, 2013
as I said above pass additional parameters from autotest.sh on to the phpunit call.
./autotest.sh sqlite GoodTest lib/goodTests.phpThe parameters GoodTest and lib/goodTests.php will be passed on to phpunit call:
fsmeier commentedon Jun 26, 2013
I used
but this command executes all tests again :-/
DeepDiver1975 commentedon Jun 26, 2013
Just in case you missunderstood me:
The passing on of arguments within autotest.sh is not yet implemented.
Feel free to implement this feature. ;-)
fsmeier commentedon Jun 26, 2013
ahh... yeah... i though you meant I was just too stupid to call it.. but it isn't coded yet :D
DeepDiver1975 commentedon Jun 26, 2013
hehe - I'd talk different in such a case ;-)
Can you implement that on both scripts autotest.cmd as well as autotest.sh?
fsmeier commentedon Jun 26, 2013
well.. to be honest... the priority in the company i am working for is atm at something different... and tomorrow i am in spain for two weeks :D so i have time in the middle of july :-/ i opened this ticket because i though you can fix this fast... maybe i must do this in my spharetime in july...
DeepDiver1975 commentedon Jun 26, 2013
well - to be honest ... ;-)
I don't need that feature and there is plenty of other stuff to be done - sorry
fsmeier commentedon Jun 26, 2013
so it's on my todo-list for july :D