Skip to content

Commit 9c08d36

Browse files
committed
still not able to run tests inside docker
1 parent ef54a69 commit 9c08d36

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ OperationResult stopResult = await server.StopAsync();
4646
Hydra has been load-tested to handle up to 50000 concurrent client connections across its channels. Performance metrics depend on hardware, network configuration, and the workload (e.g., message frequency, size).
4747
Tests could be running in a Docker container as follows:
4848
1. Build docker container - `docker build -t hydra.tests -f .\test.Dockerfile .`
49+
2. Run tests `docker run -i -t hydra.tests `
4950

5051
## :chart_with_upwards_trend: Plans
5152

test.Dockerfile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,7 @@ RUN mkdir -p -v /test_result
55
COPY Wissance.Hydra/Wissance.Hydra .
66
SHELL [ "bash", "-c" ]
77
ENV IS_CONTAINERIZED=true
8-
EXPOSE 10000-65535
9-
# RUN dotnet restore
8+
EXPOSE 10000-15000
109
RUN dotnet build Wissance.Hydra.sln
11-
#ENTRYPOINT error=0; \
12-
#for dir in *.Tests; do \
13-
# # dotnet test --logger "junit;LogFilePath=/test_result/$dir.xml" $dir 2>&1 > /test_result/$dir.log; \
14-
# dotnet test --logger "console;verbosity=normal" \
15-
# exit_code=${PIPESTATUS[0]}; \
16-
# [ $exit_code -ne 0 ] && error=$exit_code; \
17-
#done; \
18-
#exit $error
10+
1911
ENTRYPOINT ["dotnet", "test", "--logger:console;verbosity=normal"]

0 commit comments

Comments
 (0)