Junit report is not updated after tests

Hello, I run automated tests on gitlab ci with gitlab runner, all works good except reports. After tests junit reports are not updated, always show the same pass and not pass tests even thought cmd show different number of passed tests.
Gitlab script:
stages:
- build
- test
docker-build-master:

  image: docker:latest
  stage: build
  services:
- docker:dind
  before_script:
- docker login -u "xxx" -p "yyy" docker.io
  script:
- docker build ./AutomaticTests --pull -t "dockerImage" 
- docker image tag dockerImage xxx/dockerImage:0.0.1
- docker push "xxx/dockerImage:0.0.1"

test:
  image: docker:latest
  services:
- docker:dind
  stage: test
  before_script:
- docker login -u "xxx" -p "yyy" docker.io
  script: 
- docker run "xxx/dockerImage:0.0.1"
  artifacts:
when: always
paths:
  - AutomaticTests/bin/Release/artifacts/test-result.xml
reports:
  junit:
     - AutomaticTests/bin/Release/artifacts/test-result.xml

Dockerfile:
FROM mcr.microsoft.com/dotnet/core/sdk:2.1

COPY /publish  /AutomaticTests
WORKDIR /AutomaticTests
RUN apt-get update -y
RUN apt install unzip
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
RUN curl https://chromedriver.storage.googleapis.com/84.0.4147.30/chromedriver_linux64.zip -o /usr/local/bin/chromedriver
RUN unzip -o /usr/local/bin/chromedriver -d /AutomaticTests
RUN chmod 777 /AutomaticTests

CMD dotnet vstest /Parallel AutomaticTests.dll --TestAdapterPath:. --logger:"nunit;LogFilePath=..\artifacts\test-result.xml;MethodFormat=Class;FailureBodyFormat=Verbose"

@PArek - thanks for posting!

This all looks very similar to the .NET example in the JUnit report docs except you are using the --logger:"nunit; . . flag and we expect the junit flag there I believe. I would try changing that first and see how it goes.

-James H, GitLab Product Manager, Verify:Testing

I cannot copy report file from docker image to repository. I tried this:
script:
- docker run --name authContainer “xxx/yyy:0.0.1”
after_script:
- docker cp authContainer:/artifacts/test-result.xml $CI_PROJECT_DIR/artifacts

But its not working, even though on my local machine(windows) its copy report to designated destination

@PArek - looking at your other post it looks like the test results files are being uploaded but not read on the GitLab side. If you can share a file or link to a public project I’d like to take a look at that result file.

Thanks!

-James H, GitLab Product Manager, Verify:Testing