     flatten = (a, b)-> a.concat b
     prefix = (prefix)-> (str)->"#{prefix}#{str}"
 
-    testFileOrdering = grunt.expandFileArg('src/client', '**/')
+    testFileOrdering = grunt.expandFileArg(
+        config.client?.root or 'src/client/'
+        config.client?.test?.glob or '**/'
+    )
 
     grunt.Config =
         notify:

                    preprocessors: preprocessors
                    files: [
                        config.client?.files || []
                        'www/vendors.js'
                        'www/templates.js'
                        'www/application.js'

                        'node_modules/rupert-grunt/node_modules/' +
                            'angular-mocks/angular-mocks.js'
                        'node_modules/rupert-grunt/node_modules/' +
                            'mockasing/src/tools/*'

                        'src/client/tools/**'
                        'src/client/**/*mock.coffee'

                        testFileOrdering
                    ].reduce(flatten, [])

        'src/client/tools/**/*.coffee': [ 'coffee' ]

    if true and (not process.env.DEBUG or process.env.COVER)
        app = (config.client?.write?.dest or './www') + '/application.js';
        preprocessors[app] = [ 'coverage' ]

    grunt.Config =
        karma:
