I'm trying to set up Jenkins to automate a daily task of running all tests in my sandbox (and eventually, production environment.
Typically, when I do a deploy
or retrieve
task, I get lots of output while the process in going:
[sf:retrieve] Request for a retrieve submitted successfully.
[sf:retrieve] Request Id for the current retrieve task: 04sJ00000005q0JIAQ
[sf:retrieve] Waiting for server to finish processing the request...
[sf:retrieve] Request Status: InProgress
[sf:retrieve] Request Status: InProgress
[sf:retrieve] Request Status: Completed
However, when I do a test task, I get one line, and then a big old nothing:
[sf:compileAndTest] compileAndTest on https://test.salesforce.com, compiling 0 classes and 0 triggers, deleting 0 classes and 0 triggers
.
Furthermore, there's no evidence in my org that anything is happening: nothing shows up on my Monitor Deployments page, and nothing shows up in my Test Execution monitoring page. It's really disconcerting, since running all tests can take 30+ min and I have no idea how it's going (or if it's actually happening at all).
Any tips for how I can get more useful feedback? Here's my ant target:
<target name="runTestsDev">
<sequential>
<echo>Running all tests in the "dev" environment.</echo>
<sf:compileAndTest username="${sf.dev.username}"
password="${sf.dev.password}"
serverurl="${sf.testurl}">
<runTests namespace="Default"/>
</sf:compileAndTest>
</sequential>
</target>
(It's actually more generic, and defined with macros -- just giving you the simplified version)