http-server-sim
1.1.0.394
See the version list below for details.
dotnet tool install --global http-server-sim --version 1.1.0.394
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local http-server-sim --version 1.1.0.394
#tool dotnet:?package=http-server-sim&version=1.1.0.394
nuke :add-package http-server-sim --version 1.1.0.394
http-server-sim
HTTP Server Simulator is a .NET tool that runs a Web API simulating HTTP endpoints, supporting the development and testing of components that use HTTP.
http-server-sim can called from the shell/command line.
Executing Tests
Test running the app locally
Start HttpServerSim.App
without debugger and execute the tests.
Test running the app in a container
This is the way used in the build.</p>
Build image:</p> docker build -t http-server-sim-build -f Dockerfile .
</p>
Build image with verbose output:</p> docker build -t http-server-sim-build --progress=plain --no-cache -f Dockerfile .
</p>
Run container from image</p>
- interactive
docker run -i -t http-server-sim-build
</p>
- interactive, remove when done
docker run -i -t --rm http-server-sim-build
</p>
- override ENTRYPOINT with bash
docker run -i -t --rm --entrypoint "/bin/bash" http-server-sim-build
</p>
- mapp ports</p>
docker run -i -t --rm -p 8080:8080 -p 8090:8090 --entrypoint "/bin/bash" http-server-sim-build
</p>
docker run -i -t --rm -p 8080:8080 -p 8090:8090 http-server-sim-build
</p>
Building a NuGet package
Builds packages from all projects:</p>
dotnet pack --include-source --include-symbols --no-build
Builds packages from all projects setting the version in the dll and in the package:</p>
dotnet pack --include-source --include-symbols -p:PackageVersion=0.6.0 -p:Version=0.6.0 --output D:\LocalNuget
Builds one package for one project:</p>
dotnet pack .\HttpServerSim.App\HttpServerSim.App.csproj --include-source --include-symbols -p:PackageVersion=0.2.0 -p:Version=0.2.0 --output C:\LocalNuget
dotnet pack .\HttpServerSim.App\HttpServerSim.App.csproj --include-source --include-symbols -p:PackageVersion=0.8.0 -p:Version=0.8.0 --output ./HttpServerSim.App/nupkg
Read more here Source Link
Install http-server-sim as global tool
Install last version
dotnet tool install -g --add-source ./HttpServerSim.App/nupkg HttpServerSim.App
List installed dotnet tools
dotnet tool list -g
Remove http-server-sim
dotnet tool uninstall httpserversim.app -g
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
1.3.0.526-beta | 67 | 1/17/2025 |
1.3.0.523-beta | 198 | 10/16/2024 |
1.3.0.513-beta | 81 | 10/15/2024 |
1.3.0.489-beta | 80 | 9/12/2024 |
1.2.0.471 | 127 | 8/27/2024 |
1.1.0.464 | 135 | 8/14/2024 |
1.1.0.435 | 110 | 8/7/2024 |
1.1.0.429 | 107 | 8/6/2024 |
1.1.0.421 | 93 | 8/3/2024 |
1.1.0.420-beta | 77 | 8/3/2024 |
1.1.0.410 | 81 | 7/30/2024 |
1.1.0.402-beta | 91 | 7/25/2024 |
1.1.0.394 | 95 | 7/23/2024 |
1.1.0.390-beta | 80 | 7/22/2024 |