You can group all of these vars together:

```
        var resultXml   = grunt.file.read(pathToResult),
            xmlDocument = new XmlDocument(resultXml),
            testSuites  = xmlDocument.childrenNamed("testsuite"),
            failures    = 0;
```