Skip to content

Commit 6263c68

Browse files
committed
Refactor test setup and improve output handling (dotnet#940)
* Update test configurations for better output clarity * Enhance test execution with detailed logging * Fix issues related to test execution in the latest environment
1 parent 5624ad5 commit 6263c68

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
2+
3+
# use this Dockerfile to install additional tools you might need, e.g.
4+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/devcontainer.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// See https://aka.ms/devcontainer.json for format details.
2+
{
3+
"name": "eShop (.NET)",
4+
5+
// Use the official .NET dev container image (includes SDK, tools, and common dependencies).
6+
"image": "mcr.microsoft.com/devcontainers/dotnet:10.0",
7+
8+
// Container-specific settings.
9+
"settings": {
10+
"terminal.integrated.shell.linux": "/bin/bash",
11+
"dotnet.defaultSolution": "eShop.sln"
12+
},
13+
14+
// Add useful extensions for .NET development.
15+
"customizations": {
16+
"vscode": {
17+
"extensions": [
18+
"ms-dotnettools.csharp",
19+
"ms-azuretools.vscode-docker",
20+
"editorconfig.editorconfig",
21+
"formulahendry.dotnet-test-explorer"
22+
]
23+
}
24+
},
25+
26+
// Ports commonly used by ASP.NET Core apps; adjust per service as needed.
27+
"forwardPorts": [5000, 5001],
28+
29+
// Run after the container is created.
30+
"postCreateCommand": "dotnet restore"
31+
}

0 commit comments

Comments
 (0)