Repro steps:
1. Edit the Config.js of anvil - /path to titanium_mobile git repo/anvil/driver/Config.js - to contain:
// Point to a valid mobileSDK path that you want to run anvil tests against
this.tiSdkDirs = path.resolve(path.sep, "Users", "mgadiya", "Library",
"Application Support", "Titanium", "mobilesdk", "osx","2.1.3.GA");;
// This is the custom configSet that we want to run anvil against
this.customHarnessConfigDirs = ['./anvil/configSet'];
2. Download the module, unzip and add it to the modules directory which corresponds to the SDK directory you specify in Config.js in step 1
3. Download the attached Anvil folder with configSet of large testsuite.
4. Unzip it and run the following command from that directory.
node /path to titanium_mobile git repo/anvil/driver/driver.js --mode=local --platform=android --command="start --config-set=aws --suite=sns"
5. Wait for the run to complete
6. Once Anvil displays the test results, re-run the test by executing:
node /path to titanium_mobile git repo/anvil/driver/driver.js --mode=local --platform=android --command="start --config-set=aws --suite=sns"
and you will receive the follwing error:
/Users/mgadiya/Desktop/titanium_mobile/master/anvil/driver/localMode.js:54
wrench.rmdirSyncRecursive(path.join(driverGlobal.logsDir, "json_results"),
^
ReferenceError: wrench is not defined
at module.exports.start (/Users/mgadiya/Desktop/titanium_mobile/master/anvil/driver/localMode.js:54:5)
at Object.
(/Users/mgadiya/Desktop/titanium_mobile/master/anvil/driver/driver.js:294:6)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Duplicate of TIMOB-11568.
Anvil is dead.
Closing ticket as Anvil is no longer supported.