function testAllExtensionsInNativeDirectory(directory, baseUrl) {
        var bracketsPath = FileUtils.getNativeBracketsDirectoryPath(),
            config = {
                baseUrl: baseUrl
            };
        
        config.paths = {
            "perf": bracketsPath + "/perf",
            "spec": bracketsPath + "/spec"
        };
        
        return _loadAll(directory, config, "unittests", testExtension);
    }
Runs unit test for the extension that lives at baseUrl into its own Require.js context

@param {!string} directory, an absolute native path that contains a directory of extensions.
                 each subdirectory is interpreted as an independent extension
@param {!string} baseUrl, URL path relative to index.html that maps to the same place as directory
@return {!$.Promise} A promise object that is resolved when all extensions complete loading.