Commit graph

287 commits

Author SHA1 Message Date
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
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
78433197b3 Add tests to capture issue 1568 2016-03-01 12:58:30 -08:00
Troy Dai
7582649f88 Merge branch 'troy/add.test.wip' into rel/1.0.0 2016-02-29 22:32:19 -08:00
Troy Dai
13f97b0cb8 Replace TestHelper with TestAssetsManager 2016-02-29 21:34:48 -08:00
Troy Dai
f7e4714dc5 Integrate ProjectModel server tests 2016-02-29 20:40:04 -08:00
Sridhar Periyasamy
de89da6a3a Merge pull request #1551 from Sridhar-MS/cli-x86-support
Add support for building Windows x86 version of dotnet CLI
2016-02-29 14:59:51 -08:00
Livar
1740854a85 Merge pull request #1610 from livarcocc/remove_net461_build_tests
Removing net 461 from the build tests, as we are also missing that framework from our VSO machines at the moment.
2016-02-27 15:03:30 -08:00
Livar
208a0f31ec Merge pull request #1609 from livarcocc/dotnet_test_xunit_command
Dotnet test creating the command using dotnet-test-xunit
2016-02-27 15:03:14 -08:00
Troy Dai
268dd603cc Ensure Microsoft.CSharp reference is not duplicated 2016-02-26 15:06:39 -08:00
Livar Cunha
b14881d303 Removing net 461 from the build tests, as we are also missing that framework from our VSO machines at the moment. 2016-02-26 14:53:27 -08:00
Sridhar Periyasamy
01d2656be1 Merge branch 'rel/1.0.0' of https://github.com/dotnet/cli into cli-x86-support 2016-02-26 14:34:25 -08:00
Livar Cunha
5b5d2cd31a Adding a new factory that creates the command as is, without adding the dotnet to it. We need it so that the runner can pass dotnet-test-xunit and get back the final corehost command, which is the right one for VS to use and attach to. 2016-02-26 14:34:23 -08:00
Livar
14e8b184bd Merge pull request #1597 from livarcocc/debug_tests_fixes
Test Runner test started needs to handle messages when dotnet test is in TestStarted state
2016-02-26 10:49:36 -08:00
Livar Cunha
46b1fb42c0 Test Runner test started needs to handle messages when dotnet test is in a TestStarted state, as we will receive multiple test started messages. Also, to prevent a crash, when we get a message that terminates the adapter or the runner, we need to stop listening. Unfortunately, this needs to be directly where we read the messages, because if we give a handler a chance to handle that message, the reader will already be trying to read again. 2016-02-25 17:36:13 -08:00
Livar Cunha
58b8e332c1 The multitarget framework build tests is failing in VSO for net20 and net40 because it requires specific things installed at the machine. Removing the tests for these two frameworks. 2016-02-25 11:18:28 -08:00
Livar
b00a75e3ea Merge pull request #1552 from livarcocc/make_version_check_optional
Making the version check an optional message for test discovery and test run.
2016-02-25 08:35:28 -08:00
Eric Erhardt
445b1b3adb Merge pull request #1526 from eerhardt/UpdateCI
Enable installer tests in our CI.
2016-02-25 08:59:18 -06:00
David Fowler
6dc5efb0e2 Merge pull request #1513 from discostu105/rel/1.0.0
Fix net20 compatibility
2016-02-24 21:41:40 -08:00
Pavel Krymets
6aeed1f52d Merge pull request #1563 from dotnet/pakrym/wrapped-project
Fix wrapped project path resolution
2016-02-24 18:21:14 -08:00
Livar Cunha
3f2b1d068d Making the reporing channel port discovery and accept incoming connections separate. Before we were hanging when creating the reporting channel and never starting the test runner. 2016-02-24 16:53:16 -08:00
Pavel Krymets
1bfd7725b0 Fix wrapped project paht resolution 2016-02-24 16:40:22 -08:00
Pavel Krymets
334ee7829a Merge pull request #1536 from dotnet/pakrym/fix-run-tests
Fix run tests
2016-02-24 14:03:23 -08:00
Pavel Krymets
acd581c376 Merge pull request #1502 from dotnet/pakrym/dc-deps
Add support for reading DepedencyContext from deps file
2016-02-24 14:03:15 -08:00
Pavel Krymets
89cf169a08 Fix run tests 2016-02-24 08:12:32 -08:00
discostu105
af5aaea6d0 assert on Should().Fail() on non-windows platforms for desktop frameworks 2016-02-24 14:19:21 +01:00
Pavel Krymets
0037e0aba9 Fix dontet pack with buildbasepath 2016-02-23 19:13:50 -08:00
Pavel Krymets
62284943fc Add support for reading DepedencyContext from deps file 2016-02-23 18:16:40 -08:00
Livar Cunha
252eb4371f Making the version check an optional message for test discovery and test run. 2016-02-23 18:13:00 -08:00
Sridhar Periyasamy
834edfbc9c Add support for building Windows x86 version of dotnet CLI
- Changes to build scripts to produce Winx86 build artifacts like
  zip/installer.
- Change to run Nuget-xplat in the same process as dotnet.exe instead of
  spinning up a new 'corerun' process.
2016-02-23 18:04:49 -08:00
Eric Erhardt
2685d282b8 Enable installer tests in our CI. 2016-02-23 17:57:22 -06:00
Livar Cunha
7630337074 Adding unit tests for the state machine of dotnet test. Starting the implementation of a state machine in dotnet test. Right now we only handle the TestSession:Terminate message.
Adding a message handler for the version check message. Also introduced an IDotnetTest that handles state and handlers (the state machine).

Adding the test discover start message handler and introducing a test runner.

Added the handler for the GetTestRunnerProcessInfo message. Also, modified dotnet test to have separate setter for the special message handlers for terminate and unknown messages and added a separate method to add new reporting channels to DotnetTest, so that it can handle the new listener for the test runner.

Added the test runner test discovery handlers.

Added handlers to deal with the test execution itself.

Updated dotnet-test program to use the message handlers during design time.

Added a test for the whole discover tests message flow.

Added a test for the run tests full message exchange.
2016-02-23 11:20:04 -08:00
discostu105
5ad60df96a don't compile desktop framework targets on non-windows 2016-02-23 18:03:04 +01:00
Pavel Krymets
a71112ce8f Asset refactoring and content files 2016-02-23 08:34:38 -08:00
discostu105
d0d3a629a5 added unit test. made if condition easier to understand. 2016-02-23 15:53:51 +01:00
David Fowler
dec4a0627f Fix asset copy on publish when lock file instance is shared
- Don't mutate the library target when making a package description.

#1528
2016-02-23 02:34:56 -08:00
Pavel Krymets
f49fdd9197 Merge pull request #1501 from dotnet/pakrym/run-single-target
Fix run behaviour when only single target exists
2016-02-22 20:34:23 -08:00
Pavel Krymets
fcc384b175 Merge pull request #1500 from dotnet/pakrym/no-runtime-error
Add error message when runtime target is not found
2016-02-22 16:13:11 -08:00
Pavel Krymets
6ca22e4a56 Fix run behaviour when only single target exists 2016-02-22 15:11:24 -08:00
Pavel Krymets
69c0375b3f Add error message when runtime target is not found 2016-02-20 18:20:16 -08:00
Eric Erhardt
d9adc9214a Running Windows installer tests on Docker.
Cleaning up the Installer tests
- rename project to conform to the rest of the tests
- convert to .xproj
- clean up unused usings
2016-02-19 16:45:37 -06:00
Bryan Thornbury
8d939fc7e1 Merge pull request #1477 from dotnet/brthor/deps-space-fix
fix dotnet-compile.deps.json space in the path issue.
2016-02-18 11:24:40 -08:00
Bryan
dd103cf6a8 fix dotnet-compile.deps.json space in the path issue.
add test for space in the path with Preserve Compilation Context

fix project.json

update tests

update test
2016-02-18 10:51:50 -08:00
Bryan Thornbury
c749bae962 Pipe configuration through CommandResolver
script changes to pipe configuration to test.ps1

debug commit, remove this commit

Change dotnet-test to invoke dotnet-test-xunit directly

build tests with configuration, framework, runtime in windows

Update testtargets in new build scripts

make configuration first arg to dotnet test

PR Feedback

update command factory

fix interface

test update
2016-02-18 09:57:30 -08:00
Pavel Krymets
c65a1700eb Merge pull request #1449 from dotnet/pakrym/runtime-assets
Fix publish runtime asseets
2016-02-18 08:07:37 -08:00
David Fowler
ed16632a33 Flow the version suffix via pack as well 2016-02-18 02:27:35 -08:00
David Fowler
c941162b17 Fixed the test names 2016-02-18 01:12:24 -08:00
David Fowler
69b5e3f815 Fixing versions
- Added --version-suffix to build and publish
- Support reading DOTNET_* version variables everywhere versions can be read
- Show the commit sha in dotnet --version
- Added tests that check the assembly output version
- Set DOTNET_BUILD_VERSION when producing the CLI app itself so that it has the version information stamped in for help.
2016-02-18 01:10:07 -08:00
Troy Dai
ffb782594a Merge branch 'troy/add.test' into rel/1.0.0 2016-02-17 22:16:26 -08:00
Pavel Krymets
93570ea4aa Fix app local resolution logic 2016-02-17 17:06:33 -08:00
Troy Dai
c2e5b0f24d Add a ProjectModel test 2016-02-17 16:29:28 -08:00
Eric Erhardt
247b8106d8 Move FSharpTestProjects to the TestAssets folder. 2016-02-17 15:58:30 -06:00
Bryan Thornbury
23907bc924 Merge pull request #1434 from dotnet/brthor/1280/resgen-spaces
Fix Resgen with Spaces in Path
2016-02-17 09:35:26 -08:00
Piotr Puszkiewicz
d9b54cecac Merge branch 'PackagedCommands' of https://github.com/eerhardt/cli into eerhardt-PackagedCommands 2016-02-16 21:20:57 -08:00
Pavel Krymets
b0ff1857cc Fix publish runtime asseets 2016-02-16 20:54:11 -08:00
Bryan Thornbury
ccce495737 Fixes #1280
PR Feedback for resgen tests

don't trim

update use-dev for win10

additional product changes

More fixes

fix

fix resgen
2016-02-16 17:07:58 -08:00
Pavel Krymets
78ccff9d50 Merge pull request #1428 from dotnet/pakrym/runtime-context-logic
Use runtime context only where we require it
2016-02-16 17:03:01 -08:00
Sridhar Periyasamy
735b4beb7c Merge pull request #1340 from Sridhar-MS/test-fx
[WIP]: TestFramework with support for managing test projects.
2016-02-16 16:09:09 -08:00
Pavel Krymets
9fb99526a1 Use runtime context only where we require it 2016-02-16 15:54:33 -08:00
Sridhar Periyasamy
278475fdce Update IncrementalTestsOnCultureSpecificResource.cs 2016-02-16 15:41:36 -08:00
Bryan Thornbury
e486fb2020 Add Resgen Test Project, Add test to build project with resource with a space in the path. 2016-02-16 15:18:50 -08:00
Pavel Krymets
7754e8c710 Merge pull request #1362 from dotnet/pakrym/dc-tests
Refactor DependencyModel, add unit tests, add EnvironmentAbstraction library
2016-02-16 14:51:47 -08:00
Pavel Krymets
4d4f5ad895 Fix pack output location 2016-02-16 13:56:07 -08:00
Sridhar Periyasamy
9ec8556d24 Rebase with the latest sources and fix the tests. 2016-02-16 11:26:40 -08:00
Sridhar Periyasamy
ab455e6bb9 Merge branch 'rel/1.0.0' of https://github.com/dotnet/cli into test-fx 2016-02-16 09:58:20 -08:00
Pavel Krymets
39e1e26f0e Refactor DependencyModel, make it ready for tests 2016-02-16 09:56:19 -08:00
Austin Wise
67b4012e45 Move the help command it it's own class.
Also fix the help command to work with intrinsic commands.
2016-02-15 20:11:02 -08:00
David Fowler
129442923a Updated to a newer version of NuGet
- Update the newest nuget
- Filter out build dependencies from the project resolver based on hte lock file
- Fix more erroneous build dependencies
2016-02-15 18:39:29 -08:00
Senthil
ef00f0331e Include project.json dependencies for native 2016-02-14 17:20:23 -08:00
Sridhar Periyasamy
2a94a1e384 Merge branch 'rel/1.0.0' of https://github.com/dotnet/cli into test-fx
Conflicts:
	Microsoft.DotNet.Cli.sln
	scripts/dockerbuild.sh
	scripts/test/setup/build-test-prerequisites.ps1
	test/dotnet-build.Tests/IncrementalTestBase.cs
	test/dotnet-publish.Tests/Microsoft.DotNet.Tools.Publish.Tests.cs
	test/dotnet-publish.Tests/project.json
2016-02-12 17:26:58 -08:00
Sridhar Periyasamy
d7274af53a Address PR Feedback 2016-02-12 16:57:32 -08:00
Andrew Stanton-Nurse
d524732bbb working on build scripts 2016-02-12 15:26:35 -08:00
Livar Cunha
64c17c5541 Making argument forwarding tests run with dotnet test and removing the its special test scripts. 2016-02-12 13:33:41 -08:00
Bryan Thornbury
50ab680688 update compiler unit tests
fix rebase errors

PR Feedback

more PR feedback

fix

make new script file executable

Remove scripts from TestAppCompilationContext

add hashbang to echoscript
2016-02-12 11:37:15 -08:00
Bryan Thornbury
c1e28ae921 Refactor ScriptExecutor, add test cases for scriptexecutor.
Add TargetFramework and FullTargetFramework to compile and publish script
variables.

Add ProjectLocal Command Resolution Strategy.

Fixup ArgumentEscaper to not always quote things.

Fixes #1216
Fixes #1016
Fixes #982
2016-02-12 11:04:30 -08:00
Piotr Puszkiewicz
82bbd22d46 Merge pull request #1272 from cdmihai/cdmihai/noDependencies
Add --no-dependency flag to build
2016-02-12 10:59:54 -08:00
Sridhar Periyasamy
96e425f8bb Fix build breaks and some 'build' tests. 2016-02-11 15:55:37 -08:00
Sridhar Periyasamy
f86952cf1d Merge branch 'rel/1.0.0' of https://github.com/dotnet/cli into test-fx 2016-02-11 14:22:24 -08:00
Sridhar Periyasamy
9695fbfeda Refactor 'publish' and 'build' tests to use the TestFramework 2016-02-11 14:17:20 -08:00
Livar Cunha
e945361a76 Replacing the fixed rid in the dotnet compile unit test by one that respects the platform where the tests are running.
Removing trailing slashes for the paths passed to the scripts to avoid the double quotes escaped issue.
2016-02-11 12:44:27 -08:00
Livar Cunha
4e1ec4c159 Refactoring dotnet-compile to make adding the script variable testable. So far, moved it to have a compiler controller and two separate compilers: native and managed. Also moved the script runner to its own class so that we can mock it into the managed controller.
Adding a ICommand interface and factory that we can use to mock Commands and avoid actually running them in unit tests.
2016-02-11 12:42:02 -08:00
Andrew Stanton-Nurse
236fcd8f95 update everyone to 23811
add a little hackiness to the build script to use 23811 in the stage 0 as well
2016-02-11 10:38:59 -08:00
Mihai Codoban
a0990a518c Add --no-dependency flag to build 2016-02-10 15:35:27 -08:00
Pavel Krymets
4462dc21f8 Do not search for runtime output in dependencies 2016-02-10 15:20:08 -08:00
Eric Erhardt
5d04ca1fe3 Move PackagedCommands to TestAssets.
Convert package-command-test.ps1 to an XUnit test.
2016-02-10 15:05:25 -06:00
Eric Erhardt
74d8051f79 Bump CoreFx to rc2-23810 2016-02-10 13:50:28 -06:00
Sridhar Periyasamy
d1d14283a1 TestFramework with support for managing test projects.
The CLI tool's tests are run against sample test projects for validation.
TestFramework provides an easy way to manage these sample test projects.

Converted the publish test to use the TestFramework.
2016-02-10 00:21:19 -08:00
Eric Erhardt
490f4af0d4 Refactoring test directories.
- Rename Compiler.Common.Tests to Microsoft.DotNet.Compiler.Common.Tests.
- Create the Microsoft.DotNet.Cli.Utils.Tests and move StreamForwarderTests to it.
    - ArgumentForwardingTests will be moved here in the future
- Remove LoadContextTest, since it is old and no longer relevant.

Partial #1250
2016-02-09 18:26:53 -06:00
Piotr Puszkiewicz
48797ea80a Bump CoreFx to rc2-23808
Workaround for issue 1294

Improve crossgen notifications
2016-02-09 15:49:45 -08:00
Eric Erhardt
199093b09c Merge pull request #1330 from eerhardt/TestProjectMove
Move OutputStandardOutputAndError test project with the other test projects.
2016-02-09 17:48:34 -06:00
Eric Erhardt
10b6191b3e Move OutputStandardOutputAndError test project with the other test projects.
Partial #1250
2016-02-09 16:51:02 -06:00
Pranav K
1d25d2574d Fix the paths at which CompileContext locates resgen outputs.
Fixes #1136
2016-02-09 14:29:25 -08:00
Eric Erhardt
784f5679bf Rename E2E test to EndToEnd. 2016-02-09 15:12:25 -06:00
Eric Erhardt
8ce79407db Merge pull request #1312 from eerhardt/MoveMsiTests
Move Msi tests into the \test directory.
2016-02-09 15:10:39 -06:00
Pavel Krymets
7baf0d61c6 Merge pull request #1313 from dotnet/pakrym/paths2
Fix tests on OS X and add diagnostic message
2016-02-09 11:59:38 -08:00
Eric Erhardt
faa88ae155 Move Msi tests into the \test directory.
Partial #1250
2016-02-09 13:15:01 -06:00