/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    generateInstruments = require('../../../../ci/worker/generate_instruments.js');

exports.setUp = function (done) {
    done();
};

exports.tearDown = function (done) {
    done();
};


exports['Generate instruments.'] = function (test) {
    var instrumentsDir = testResource.resolveWorkFile('work_instruments_dir'),
        srcDir = testResource.resolveMockFile('mock_modules');
    generateInstruments({
        srcDir: srcDir,
        instrumentsDir: instrumentsDir,
        filesToCopy: [
            testResource.resolveMockFile('mock_files/mock_txt.txt')
        ],
        testDir: [
            testResource.resolveMockFile('mock_modules2')
        ]
    }, function (err) {
        test.ifError(err);
        test.done();
    });
};