Skip to content

Commit

Permalink
Add docker remote test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
edumserrano committed May 16, 2023
1 parent 5ce0748 commit 5de8b47
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion GitHubIssueFormsParser/testenvironments.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
"version": "1",
"environments": [
{
"name": "WSL-Ubuntu-22.04",
"name": "WSL Ubuntu 22.04",
"type": "wsl",
"wslDistribution": "Ubuntu-22.04"
},
{
"name": "docker Ubuntu 22.04",
"type": "docker",
"dockerFile": "tests/remote-test-environment.Dockerfile"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# use same linux distro as github runner for ubuntu-latest which is what the workflows use
FROM mcr.microsoft.com/dotnet/sdk:7.0-jammy
5 changes: 4 additions & 1 deletion docs/dev-notes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
1) Clone the repo and open the **GitHubIssueFormsParser.sln** solution file at `/GitHubIssueFormsParser`.
2) Go to the test explorer in Visual Studio and run tests.

**Note:** [Remote testing](https://docs.microsoft.com/en-us/visualstudio/test/remote-testing?view=vs-2022) with WSL is configured on the solution which enables you to run the tests locally on Linux or on Windows. You can view the configuration file at [testenvironments.json](/GitHubIssueFormsParser/testenvironments.json). To run the tests on Linux you need to have at least `Visual Studio 2022` and the Linux distro `Ubuntu-22.04` installed on [WSL](https://docs.microsoft.com/en-us/windows/wsl/install).
**Note:** [Remote testing](https://docs.microsoft.com/en-us/visualstudio/test/remote-testing?view=vs-2022) with is configured on the solution which enables you to run the tests locally on Linux or on Windows. You can view the configuration file at [testenvironments.json](/ShareJobsData/testenvironments.json). To run the tests on Linux you need to have at least `Visual Studio 2022` and:

- the Linux distro `Ubuntu-22.04` installed on [WSL](https://docs.microsoft.com/en-us/windows/wsl/install) if you want to run via WSL.
- docker installed if you want to run via docker.

### Run tests with dotnet CLI

Expand Down

0 comments on commit 5de8b47

Please sign in to comment.