<commit_before>const path = require("path");
const fs = require("fs");
const testRunner = require('../../double-check').testRunner;
console.log(testRunner);
const assert = require('../lib/checksCore').assert;

var config = {
	reports: {
		testsDir: path.join(process.cwd()),
		prefix: "Report-",
		ext: ".txt"
	}
};
console.log(config);
testRunner.start(config, callback);

function callback(error, result) {
	if(error) {
		console.error(error);
	} else {
		assert.true(fs.existsSync(config.reports.basePath), "Reports dir should be created!");
	}
}<commit_msg>/bin/testRunner.js now checks correctly to see if the results were written<commit_after>const path = require("path");
const fs = require("fs");
const testRunner = require('../../double-check').testRunner;
console.log(testRunner);
const assert = require('../lib/checksCore').assert;

var config = {
	reports: {
		testsDir: path.join(process.cwd()),
		prefix: "Report-",
		ext: ".txt"
	}
};
console.log(config);
testRunner.start(config, callback);

function callback(error, result) {
	if(error) {
		console.error(error);
	} else {
        assert.notNull(result, "No result found, please check console!");
	}
}
{'fraction_non_alphanumeric': 0.17893835616438356, 'fraction_numerical': 0.0, 'mean_word_length': 4.730392156862745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6227338', 'n_tokens_mistral': 388, 'n_tokens_neox': 372, 'n_words': 85}