Skip to content

dotnet test, output STDIO and azure pipelines #12546

@Patafoin

Description

@Patafoin

Description

I'm using dotnet test with xUnit tests into an azure pipeline through yml.
It seems that dotnet test command has an issue about its ouput :

The STDIO streams did not close within 10 seconds of the exit event from process 'C:\Program Files\dotnet\dotnet.exe'. This may indicate a child process inherited the STDIO streams and has not yet exited.

After investigating, it is linked to the number of tests.
The projects that have some problems has many tests and the output last with something like this just before the above message :

+---------+-------+--------+--------+ | | Line | Branch | Method | +---------+-------+--------+--------+ | Total | 0,4% | 0% | 0,75% | +---------+-------+--------+--------+ | Average | 0,49% | 0% | 0,68% | +---------+-------+--------+--------+

I tried with one new project and only one test in it and it works.
It lasts with this output

`Au total, 1 fichiers de test ont correspondu au modèle spécifié.

Série de tests réussie.
Nombre total de tests : 1
Réussi(s) : 1
Durée totale : 5,0657 Secondes
`

I really don't understand what the problem but I'm sure that there is something with the output.
I tried to set verbosity to quiet but it seems to be overriden by minimal parameter, quiet doesn't work.

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