Skip to content

JUnit output incomplete, truncated at ^2kB boundary #138

@allenap

Description

@allenap

Running elm-test and redirecting to a file works as expected:

$ elm-test --report=junit > foo.xml
$ ls -l foo.xml
.rw-r--r-- gavin staff 789.9 KB Fri May 22 13:28:05 2020 foo.xml
                       ^^^^^^^^

Piping via another process results in a truncated output file:

$ elm-test --report=junit | cat > foo.xml
$ ls -l foo.xml
.rw-r--r-- gavin staff 64 KB Fri May 22 13:23:39 2020 foo.xml
                       ^^^^^

Observed on macOS (truncates at 64kB) and Linux (truncates at 128kB).

Just a guess, but I suspect there's a missing flush somewhere.

$ elm-test --version
0.19.1-revision3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions