Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
fix: Replaced the default adapter with fs.writeSync
Browse files Browse the repository at this point in the history
This ensures thad all tests are reported before
the process ends.

Closes #5
  • Loading branch information
nievebc authored and dignifiedquire committed Jun 22, 2015
1 parent d4e8004 commit d8d9e70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var util = require('util');
var fs = require('fs');

var escapeMessage = function (message) {
if(message === null || message === undefined) {
Expand Down Expand Up @@ -30,6 +31,8 @@ var formatMessage = function() {
var TeamcityReporter = function(baseReporterDecorator) {
baseReporterDecorator(this);

this.adapters = [fs.writeSync.bind(fs.writeSync, 1)];

This comment has been minimized.

Copy link
@dizel3d

dizel3d Mar 17, 2016

Contributor

fs.writeSync.bind(fs~~.writeSync~~, 1)


this.TEST_IGNORED = '##teamcity[testIgnored name=\'%s\']';
this.SUITE_START = '##teamcity[testSuiteStarted name=\'%s\']';
this.SUITE_END = '##teamcity[testSuiteFinished name=\'%s\']';
Expand Down

1 comment on commit d8d9e70

@dizel3d
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix produced the bug #32: Windows OS console use ANSI and writeSync cannot print language-specific symbols correctly.

Please sign in to comment.