Skip to content

Commit

Permalink
Merge pull request dotnet#2094 from dotnet/dotnet_test_relative_images
Browse files Browse the repository at this point in the history
Making the dotnet test images relative paths.
  • Loading branch information
Livar committed Mar 28, 2016
2 parents 1ff15e3 + 105536d commit cf61677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dotnet/commands/dotnet-test/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ adapter structure messages containing the results of the test execution.
All messages have the format described here: [Message.cs](https://github.com/dotnet/cli/blob/rel/1.0.0/src/Microsoft.Extensions.Testing.Abstractions/Messages/Message.cs). The payload formats for each message is described in links to the classes used to de/serialize the information in the description of the protocol.

#### Test Execution
![alt tag](https://github.com/dotnet/cli/blob/dotnet_test_documentation/Documentation/images/DotnetTestExecuteTests.png)
![alt tag](../../../../Documentation/images/DotnetTestExecuteTests.png)

1. After the optional version check, the adapter sends a TestExecution.GetTestRunnerProcessStartInfo, with the [tests](https://github.com/dotnet/cli/blob/rel/1.0.0/src/Microsoft.Extensions.Testing.Abstractions/Messages/RunTestsMessage.cs) it wants to execute inside of it. Dotnet test sends back a FileName and Arguments inside a [TestStartInfo](https://github.com/dotnet/cli/blob/rel/1.0.0/src/dotnet/commands/dotnet-test/TestStartInfo.cs) payload that the adapter can use to start the runner. In the past, we would send the list of tests to run as part of that argument, but we were actually going over the command line size limit for some test projects.
1. As part of the arguments, we send a port that the runner should connect to and for executing tests, a --wait-command flag, that indicates that the runner should connect to the port and wait for commands, instead of going ahead and executing the tests.
Expand All @@ -40,7 +40,7 @@ All messages have the format described here: [Message.cs](https://github.com/dot
7. Once the adapter is done, it sends dotnet test a TestSession.Terminate which will cause dotnet test to shutdown.

#### Test discovery
![alt tag](https://github.com/dotnet/cli/blob/dotnet_test_documentation/Documentation/images/DotnetTestDiscoverTests.png)
![alt tag](../../../..//Documentation/images/DotnetTestDiscoverTests.png)

1. After the optional version check, the adapter sends a TestDiscovery.Start message. Because in this case, the adapter does not need to attach to the process, dotnet test will start the runner itself. Also, since there is no long list of arguments to be passed to the runner, no --wait-command flag is needed to be passed to the runner. dotnet test only passes a --list argument to the runner, which means the runner should not run the tests, just list them.
2. The runner then sends dotnet test (and it passes forward to the adapter) a TestDiscovery.TestFound for each [test](https://github.com/dotnet/cli/blob/rel/1.0.0/src/Microsoft.Extensions.Testing.Abstractions/Test.cs) found.
Expand Down

0 comments on commit cf61677

Please sign in to comment.