Skip to content

Commit 369fb7c

Browse files
committed
update test runner
1 parent 09a0c59 commit 369fb7c

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## [0.5.5] - in progress
5+
## [0.5.5] - 2016-03-12
66
- fixes for Windows
7+
- no need to pass `handleLog` to test runner
78

89
## [0.5.4] - 2016-03-09
910
- fix bug that prevented scroll in Atom 1.6+

src/reducers/run-tests/run.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {handleResult, handleLog} from './test-result';
1+
import {handleResult} from './test-result';
22
import {store} from '../../_base';
33

44
export function runTaskTests(setup?: boolean): boolean {
@@ -7,7 +7,7 @@ export function runTaskTests(setup?: boolean): boolean {
77
let config = window.coderoad;
88
config.taskPosition = store.getState().taskPosition;
99
// call test runner
10-
window.coderoad.runner(tests, config, handleResult, handleLog);
10+
window.coderoad.runner(tests, config, handleResult);
1111
}
1212
return true;
1313
}

src/reducers/run-tests/test-result.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,3 @@ export function handleResult(result: CR.TestResult) {
1919
store.dispatch(Action.testResult(result));
2020
}
2121
};
22-
23-
export function handleLog(message: string): void {
24-
console.log(message);
25-
store.dispatch(Action.logMessage(message));
26-
}

src/services/exists.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as fs from 'fs';
22

33
export function fileExists(pathToFile: string): boolean {
44
try {
5-
fs.accessSync(pathToFile, fs.R_OK | fs.W_OK);
5+
fs.accessSync(pathToFile, fs.F_OK);
66
} catch (e) {
77
if (e) {
88
if (e.code !== 'ENOENT') {

0 commit comments

Comments
 (0)