# How to run tests

Before running tests create empty directory with any arbitrary name
anywhere inside "fixtures" folder.

It is hard to convince "git" that empty folder is really needed inside project
so for tests to be executed correctly it needs to be created manually.

Then execute following commands in main package directory:

```bash
$ npm install # optional
$ grunt test
```

Global `grunt-cli` package is required.

# Current code coverage

| File                                                     |   % Stmts |% Branches |   % Funcs |   % Lines |
| -------------------------------------------------------- | --------- | --------- | --------- | --------- |
|    modules/                                              |       100 |       100 |       100 |       100 |
|       filesystem.js                                      |       100 |       100 |       100 |       100 |
|    scripts/JsLoader/FileSystem/                          |     98.65 |        98 |     94.85 |     98.65 |
|       FileSystemScanner.js                               |       100 |        98 |       100 |       100 |
|       FileSystemStrategy.js                              |      90.2 |       100 |     73.68 |      90.2 |
|       ScanningBranch.js                                  |       100 |       100 |       100 |       100 |
|       ScanningBranchRepository.js                        |       100 |       100 |       100 |       100 |
|       ScanningConfiguration.js                           |       100 |       100 |       100 |       100 |
|       ScanningProcess.js                                 |       100 |     96.43 |       100 |       100 |
|       ScanningResult.js                                  |       100 |       100 |       100 |       100 |
|       ScanningStrategy.js                                |       100 |       100 |       100 |       100 |
|    scripts/JsLoader/FileSystem/FileSystemScanner/        |       100 |       100 |       100 |       100 |
|       Remembering.js                                     |       100 |       100 |       100 |       100 |
|    scripts/JsLoader/FileSystem/FileSystemStrategy/       |       100 |       100 |       100 |       100 |
|       Asynchronous.js                                    |       100 |       100 |       100 |       100 |
|       Synchronous.js                                     |       100 |       100 |       100 |       100 |
|    scripts/JsLoader/FileSystem/ScanningStrategy/         |       100 |       100 |       100 |       100 |
|       Pattern.js                                         |       100 |       100 |       100 |       100 |
|    scripts/JsLoader/FileSystem/ScanningStrategy/Pattern/ |       100 |       100 |       100 |       100 |
|       Directory.js                                       |       100 |       100 |       100 |       100 |
|       File.js                                            |       100 |       100 |       100 |       100 |

| File                                                     |   % Stmts |% Branches |   % Funcs |   % Lines |
| -------------------------------------------------------- | --------- | --------- | --------- | --------- |
| All files                                                |     99.08 |      98.5 |     96.45 |     99.08 |
