karma-runner/karma

Ensure all stream buffers are drained before exiting process in single run mode.

Open

#742 创建于 2013年9月11日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)JavaScript (11,918 star) (1,703 fork)batch import
help wantedtype: bugwindows

描述

After investigating a strange behavior on running karma with TeamCity on Windows, I noticed the following issue.

When running the following command in PowerShell:

karma start --single-run | Out-File C:\test.out

The writing function is non-blocking/asynchronous & the written/piped data can be buffered, which could lead to some test results being lost.

Karma needs to ensure that all buffers have been drained or that the writing functions have completed (if they are non-blocking) before exiting the process.

贡献者指南

Ensure all stream buffers are drained before exiting process in single run mode. · karma-runner/karma#742 | Good First Issue