I have problem with running from Eclipse IDE a testcase.
when I run test case in command line in terminal it runs with success. Command used: ./loadDBwithTestData.sh test/0003_Disco_Manager_Actions/data/BuyingActionsTest.sql
and then
phpunit --configuration config/phpunit_acceptance.xml test/0003__Disco_Manager_Actions/BuyingActionsTest.php
after that when I run all the tests almost all of them fail except ones who does not need to load sql file. command used: phpunit --configuration config/phpunit_acceptance.xml test
In my testcase script, command that I use to load database sql file: $this->db->loadDataFromFile(dirname(FILE).'/data/BuyingActionsTest.sql');
Obviously from this my sql file is correct but I am not loading my database correctly into my testcase script.
Question:
Could somebody suggest what path should I use or some other command so when runned all testcases they load sql file?