Commit graph

806 commits

Author SHA1 Message Date
Pavel Krymets
a0db5086f6 Fix dependency context builder regression 2016-03-08 09:22:17 -08:00
Bryan Thornbury
2b90a2f831 Merge pull request #1692 from dotnet/brthor/refactor-resolvers
Refactor Command Resolvers, Add Tests, and Fix #1649
2016-03-07 16:50:14 -08:00
Bryan Thornbury
9f58651b6c PR Feedback and nearly full test coverage for resolvers
fix

resolve rebase issues
2016-03-07 14:45:16 -08:00
N. Taylor Mullen
2f2b3df35b Merge pull request #1738 from dotnet/nimullen/createloadcontextfix
Add ability to specify `outputPath` when creating a `ProjectContext`s `AssemblyLoadContext`.
2016-03-07 14:38:35 -08:00
Bryan Thornbury
b813e2b849 Fixes #1649
make things work again

fix

Tests Passing

cleanup

fix

fix
2016-03-07 14:35:41 -08:00
Bryan
42cc39252e Refactor CommandResolver into individual CommandResolver Implementation
classes.

Write Unit Tests covering Composite DefaultCommandResolver and
ScriptCommandResolver.

baseline

Baseline2
2016-03-07 14:34:23 -08:00
Livar
1fccdbd6ec Merge pull request #1697 from livarcocc/tests_to_run_in_message
Modified the protocol to send a the list of tests to run in a message
2016-03-07 14:01:45 -08:00
N. Taylor Mullen
2ea26645e6 Add ability to specify outputPath when creating a ProjectContexts AssemblyLoadContext.
- Prior to this change `outputPath` would always default to `null` which didn't work well with `VisualStudio` tooling. The tooling enables the user to specify a project's `outputPath` but more importantly defaults the project's `outputPath` to the root directory (instead of the project directory).
2016-03-07 12:01:07 -08:00
Pavel Krymets
781678de92 Merge pull request #1703 from dotnet/pakrym/deps-json
Add support for new `deps.json` format without some features.
2016-03-07 11:32:32 -08:00
Livar Cunha
e498f1dc9d Modified the protocol to send a the list of tests to run and to invoke the test runner with the wait command flag so that the runner waits for this list.
Modified the reporting channel factory to have a create for the adapter and a create for the runner channel. Also added an event to the create runner channel that people can listen and be notified when a test runner channel was created. I use this event to give the message handler access to the runner channel.

Added the new message handler to DotnetTest.
2016-03-04 17:14:56 -08:00
Jared Parsons
fa143c4d1c Revert to full PDB on Windows as a default
The change to default to Portable PDB by default has broken a number of downstream consumers.  Moving back to full PDBs by default on Windows.

This leaves the option for portable PDB in place.  Hence you can still enable it via the following entry in project.json:

``` json
"compilationOptions": {
    "debugType": "portable"
}
```
2016-03-04 15:33:06 -08:00
Pavel Krymets
1658a40806 Fix tests 2016-03-04 15:05:29 -08:00
Pavel Krymets
1d7cff48d4 PR 2016-03-04 14:12:16 -08:00
Pavel Krymets
304127ec0d Fix wrapped project export 2016-03-04 12:16:23 -08:00
Bryan Thornbury
42a17b5d98 Merge pull request #1684 from dotnet/brthor/fix-bold-bleed
fix bold bleed
2016-03-04 11:10:43 -08:00
Pavel Krymets
25d70c07c3 PR 2016-03-04 11:06:12 -08:00
Pavel Krymets
7df754be36 Finish builder tests 2016-03-04 11:01:15 -08:00
Pavel Krymets
0a0c4a830e Even more tests 2016-03-04 11:01:15 -08:00
Pavel Krymets
dcaea8c7ca More work and tests 2016-03-04 11:01:15 -08:00
Pavel Krymets
9bd9ca1512 Add more tests and some reading logic 2016-03-04 11:01:15 -08:00
Pavel Krymets
3f4c263670 Add support for json deps file 2016-03-04 11:01:15 -08:00
David Fowler
3ed9361763 Merge pull request #1699 from dotnet/davidfowl/error-handling
Tweak error handling a little bit
2016-03-04 07:54:19 -08:00
David Fowler
25b5ce9c77 Tweak error handling a little bit
- Handle unresolved projects better in build
- Move unresolved package marking to the resolver
- Added ToString to LibraryKey for easy diagnosis of errors
2016-03-04 01:17:37 -08:00
Livar
049bd17ed2 Merge pull request #1696 from livarcocc/test_abstractions_tests_in_message
Adding a new SendWaitingCommand message to the test sinks
2016-03-03 21:31:30 -08:00
Eric Erhardt
a709f772f1 Merge pull request #1645 from eerhardt/NewCorefx
Move to CoreFX build rc2-23901
2016-03-03 23:21:52 -06:00
Livar Cunha
59033ba1e7 Adding a new SendWaitingCommand message to the test sinks so that they can tell dotnet test that the runner is ready to receive commands. 2016-03-03 19:53:33 -08:00
Senthil
5cf680d2f0 Merge pull request #1678 from schellap/master
Fix host case comparison
2016-03-03 18:01:47 -08:00
Jared Parsons
d7cabe152f Merge pull request #1392 from jaredpar/pdb
Make Portable PDB the default on Windows
2016-03-03 17:14:51 -08:00
Eric Erhardt
6468b14e1d Move to CoreFX build rc2-23901
Update .exe's project.json Target Framework from dnxcore50 to netstandardapp1.5.
Update .dll's project.json Target Framework from dnxcore50 to netstandard1.3.

Adding workaround for DataContractSerialization to src\dotnet\project.json to fix crossgen issue.
Build 23901 has a dependency issue that doesn't allow the runtime.any.System.Private.DataContractSerialization
package to be restored. When we move to a new build of CoreFX we should take this workaround out.
2016-03-03 16:41:55 -06:00
Troy Dai
81baacd641 Fix issue 1665: prevent sending null error message 2016-03-03 13:13:06 -08:00
Livar
d918d527bd Merge pull request #1676 from livarcocc/unbound_test_collection
TestMessagesCollection with unbound BlockingQueue
2016-03-03 12:36:43 -08:00
Bryan
5cb1703a76 fix bold bleed 2016-03-03 12:15:16 -08:00
Pavel Krymets
d701e54d8c Merge pull request #1671 from dotnet/pakrym/package-cache
Search for package cache hash file in right directory
2016-03-03 11:37:13 -08:00
schellap
58822cc37b Fix host case comparison 2016-03-03 01:52:17 -08:00
Livar Cunha
db218ab11c This fixes a race condition where if the runner takes to long to execute and we get two messages before the runner quits, we hit a blocking piece of code when trying to add new messages to the queue, which leads to a deadlock, where we need to finish the runner to process new messages but the runner won't quit because it is waiting for us to accept is other messages. 2016-03-03 00:11:13 -08:00
Livar Cunha
03b6b8ada0 We had a bug where the framework for design time runs of dotnet test was hard coded into dnxcore50. Moved some things around so that we will pack the target framework from the project context. 2016-03-02 22:15:02 -08:00
Pavel Krymets
30992babaf Search for package cache hash file in right directory 2016-03-02 20:04:26 -08:00
Jared Parsons
2d25d1232a Emit isn't on the CSharpCompilationOptions 2016-03-02 18:22:14 -08:00
Jared Parsons
b378fb0419 fixes 2016-03-02 16:24:54 -08:00
Jared Parsons
2deb9d343a Plumbde through the option 2016-03-02 15:53:59 -08:00
Livar
5b1ad5fe3e Merge pull request #1652 from livarcocc/test_output_param
Added output param to dotnet test
2016-03-02 14:09:40 -08:00
Jared Parsons
e56858b4b3 Make Portable PDB the default on Windows
VS 2015 Update 2 CTP has been released which has support for debugging portable PDBs.  Now is a good time to make the transition so a) we can root out any remaining issues with portable PDBs and b) have larger dogfooding of the VS debugging experience here.

closes #704
2016-03-02 09:58:41 -08:00
Troy Dai
b63705198c Merge branch 'troy/1569' into rel/1.0.0 2016-03-02 09:31:36 -08:00
Livar
66a4554290 Merge pull request #1640 from livarcocc/update_xunit_runner
Updating tests to use the latest version of dotnet-test-xunit
2016-03-01 22:47:37 -08:00
Livar Cunha
ebab175d17 Added a command factory where you can fix the output parameters that will flow to the commands, like configuration, outputpath and in the future, framework, runtime and base path. 2016-03-01 22:28:46 -08:00
Livar Cunha
9953ab48b3 Changing from serializing ProcessStartInfo to our own TestStartInfo class, because serializing ProcessStartInfo doesn't really work cross-platform due to unsupported properties. 2016-03-01 21:53:51 -08:00
Troy Dai
4dff646f5d Update ProjectManager error message 2016-03-01 19:45:45 -08:00
Livar Cunha
4108920510 Updating tests to use the latest version of dotnet-test-xunit, which supports debugging from VS. Also updating our xproj files so that we can build the CLI from VS using the CLI. 2016-03-01 16:28:10 -08:00
Troy Dai
9f8906fdac Update dotnet projectmodel tests 2016-03-01 12:58:30 -08:00
Troy Dai
bcd656daec Fix logging error 2016-03-01 12:58:30 -08:00