Hi All,
I'm in the middle of setting up Swift Mailer for the first time, I'm following the read me that came with the install. Ive renamed lib file as swift and located it outside my webroot - I've placed the tests folder inside my site renamed swift_tests. Ive run the Smoke Tests no problem, but now I'm stuck with simpletest.
I've placed the simpletest folder inside the swift_tests folder and ammended testConfiguration.php accordingly (SIMPLETEST_PATH = "/simpletest") I'm now pointing my browser to mysite/online/swift_tests/units/runAllAuthenticatorTests.php - I'm expecting to see some form of simpleTest result, but I'm seeing nothing ... like my browser window is empty!
I'm now stuck - can you help me?
Thanks ihn advance
Giles
troubles testing with simpletest
Moderators: Chris Corbyn, General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
thanks for your response. I've tried your suggestion of an absolute file path from the server root, I've also tried placing a copy of simpletest (e.g. const SIMPLETEST_PATH = "../../../../simpletest") in the same lacation as swift (e.g. const SWIFT_LIBRARY_PATH = "../../../../swift") which I know works as I could run the smoke tests, but I'm still getting the same result
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Based on this path: mysite/online/swift_tests/units/runAllAuthenticatorTests.php
If simpletest was placed at: mysite/online/swift_tests/simpletest
Your SIMPLETEST_PATH should be ".." (two dots). The path is relative to the test runner file. A blank screen is usually a sign that there was an error. Simpletest may be masking the errors itself. Maybe you're running out of memory.... the tests do use quite a lot of memory so if your PHP memory_limit is less than 8MB you may not have much luck. I assume you're running PHP5?
If simpletest was placed at: mysite/online/swift_tests/simpletest
Your SIMPLETEST_PATH should be ".." (two dots). The path is relative to the test runner file. A blank screen is usually a sign that there was an error. Simpletest may be masking the errors itself. Maybe you're running out of memory.... the tests do use quite a lot of memory so if your PHP memory_limit is less than 8MB you may not have much luck. I assume you're running PHP5?
Hey Chris,
thanks for your last advice. I would have gotten back earlier but I became a dad a couple of weeks ago and I've been a little tide up (no S**t). OK I'm cleared up on filepaths, Yup I'm on PHP 5 and I've just bumped memory_limit to 16M. Unfortunatly I'm still in the same spot with only a selection of individual unit tests working. Any further suggestions?
I've been running swiftmailer for a month or so on test. It's working fine with the likes of, bt, freeserve, fsnet, gmail, ntl, tiscali etc but I'm getting a problem with AOL users ... I'm wondering could the two problems be related?
I'd REALLY be in your debt form any help
Cheers
thanks for your last advice. I would have gotten back earlier but I became a dad a couple of weeks ago and I've been a little tide up (no S**t). OK I'm cleared up on filepaths, Yup I'm on PHP 5 and I've just bumped memory_limit to 16M. Unfortunatly I'm still in the same spot with only a selection of individual unit tests working. Any further suggestions?
I've been running swiftmailer for a month or so on test. It's working fine with the likes of, bt, freeserve, fsnet, gmail, ntl, tiscali etc but I'm getting a problem with AOL users ... I'm wondering could the two problems be related?
I'd REALLY be in your debt form any help
Cheers