Commit Graph

71 Commits

Author SHA1 Message Date
Ravi Chande e7cb648b28 Make test name filtering case-insensitive 2015-10-23 12:28:06 -05:00
Dustin Campbell 0137b1a60b recycle worker process on test discovery to enable us to disable AppDomains for that scenario 2015-10-14 16:12:47 -07:00
Cyrus Najmabadi 836a4f59d6 Handle messages in batches 2015-10-14 15:06:25 -07:00
Cyrus Najmabadi cf33c99ea3 Update UI more sparingly. Avoid hotspot in Xunit discovery 2015-10-14 14:17:51 -07:00
Dustin Campbell bb1a2206b4 Fix assembly reloading
* Assembly reload didn't remove all test cases properly as it needed to compare file names with a case-insensitive match.
* Add "Discovering tests..." text to assembly view while loading tests.
2015-10-14 13:08:48 -07:00
Kevin Pilch-Bisson 95dc906281 Merge branch 'master' of https://github.com/dpoeschl/xunit.runner.wpf into dpoeschl-master
Conflicts:
	xunit.runner.wpf/Converters/TestStateConverter.cs
2015-10-13 11:08:06 -07:00
Kevin Pilch-Bisson 984beba184 Merge pull request #33 from Pilchie/application-icon
Use proper xUnit application icon
2015-10-13 11:03:16 -07:00
Dustin Campbell 0cc8f3aba8 Use proper xUnit application icon 2015-10-13 09:21:17 -07:00
Kevin Pilch-Bisson fd72605d9d Update to released xunit 2.1 2015-10-12 12:13:26 -07:00
Kevin Pilch-Bisson cb39c7af29 Merge pull request #27 from Pilchie/ui-tweaks
A few UI tweaks
2015-10-12 09:23:59 -07:00
Jared Parsons 90643fbf8f Worker can process tasks in parallel 2015-10-12 09:20:44 -07:00
Jared Parsons 0d96b29a7a Allow opening of multiple assemblies at a time 2015-10-12 09:20:42 -07:00
Jared Parsons d861f4a6ee Made connection async
The connection to the worker process was sync on the UI thread which
could lead to hangs.  Made it an async operation instead.

This did require me to upgrade to the 4.6 framework to use the
NamedPipeClientStream::ConnectAsync method.  If that is a blocker I can
downgrade back to 4.5.2 and use Thread tricks to get a similar effect.
2015-10-12 09:20:41 -07:00
Jared Parsons 3f894e0e7c Correct debugging workflow
There is now a single worker process model for all requests.  Debugging
workflow is to attach to this process and debug there.

closes #20
2015-10-12 09:19:44 -07:00
Dustin Campbell 65adde358c A few UI tweaks
Notably, the images for passed, failed and skipped have been replaced with images from the Visual Studio Image Library.
2015-10-12 08:58:11 -07:00
Dustin Campbell ae5e46d772 Fix issue where running a specific test was treated as running all of them 2015-10-12 06:28:42 -07:00
Jared Parsons 13afb6eea5 Fixed the race condition in the run and discover tasks 2015-08-27 17:13:55 -07:00
Jared Parsons e3a17c5308 Respond to PR feedback
Handled everything but the race condition.  Going to fix that in a
separate commit.
2015-08-27 16:41:14 -07:00
Jared Parsons 89be98bebc Naming consistency 2015-08-23 23:09:23 -07:00
Jared Parsons 9e5ac70234 Fix reload bugs
Fixes a couple of bugs in the Reload / Remove logic.
2015-08-23 23:08:00 -07:00
Jared Parsons b35da545d6 Added remove all assemblies menu item 2015-08-23 23:01:54 -07:00
Jared Parsons 3a7d01b87e Add Assembly reload support
Can now reload individual or all currently loaded assemblies.

closes #2
2015-08-23 21:25:21 -07:00
Jared Parsons 0e24227de0 Ability to clear trait selection
This should fulfill issue #7
2015-08-23 21:00:28 -07:00
Jared Parsons 65f3fc970e Test run can be filtered by traits 2015-08-23 20:50:59 -07:00
Jared Parsons 06f1c8c703 Traits displaying in the UI 2015-08-23 19:20:34 -07:00
Jared Parsons ea51cd39eb Cleaned up the UI model a bit
Factored all the code for managing the state around ITestSession
interaction into a single method.
2015-08-21 17:00:55 -07:00
Jared Parsons a3cfe6c3c5 Respond to PR feedback 2015-08-21 13:45:43 -07:00
Jared Parsons ad66e46217 Made send of test case list non-blocking 2015-08-21 13:36:36 -07:00
Jared Parsons 4fe71ae114 Run now filters to search results 2015-08-20 17:04:42 -07:00
Jared Parsons 0eaf76ca81 Distinguish between Run and RunAll 2015-08-20 15:54:02 -07:00
Jared Parsons 2076e4a457 Remove dispatcher arguments
Can be captured by RemoteTestUtil at startup.
2015-08-20 15:00:43 -07:00
Jared Parsons f7fe8d802a Discover is non-blocking 2015-08-19 17:54:51 -07:00
Jared Parsons 9d8850c98f Remove exceptions is standard workflow
Added markers to the IPC stream so the client knows when to stop
reading.  The previous behavior was to just read until the pipe was
empty and swallow the exception.
2015-08-19 17:00:49 -07:00
Jared Parsons 7fce7c8e62 Merged with master 2015-08-19 14:50:53 -07:00
Jared Parsons f3b7baa377 Fix cancellation 2015-08-19 14:33:41 -07:00
Jared Parsons d9e63a3572 Fix build 2015-08-19 14:28:35 -07:00
Jared Parsons 3a8503e4bc Fix build issue 2015-08-19 14:23:27 -07:00
Jared Parsons cf5c313d28 Used a changing pipe name
This ensures that we can have multiple worker processes running at the
same time.
2015-08-19 13:47:48 -07:00
Jared Parsons 6c3a38c8d0 Cancellation for unit test runs re-implemented 2015-08-19 13:34:10 -07:00
Jared Parsons 0d3374d149 Remove Xunit refs from WPF runner
The WPF runner doesn't actually engage with xunit anymore and hence
doesn't need any references to it.
2015-08-19 12:59:45 -07:00
Jared Parsons 99bbd2c2c9 Remote execution from the UI
The UI now executes the tests in a separate process.  This removes the
need to shadow copy and frees up the idea of re-running the tests
without restart of the UI.
2015-08-19 12:58:57 -07:00
Jared Parsons 65ff09fcae Parameterized runner on action verb 2015-08-19 11:19:04 -07:00
Jared Parsons f367f9c01f Factor discover to a better interface
The discover process still needs a ton of work but this at least puts it
behind a slightly better interface.
2015-08-19 11:07:45 -07:00
Jared Parsons 07dea77a2f Correct worker dependency
Now have very crude implementation of discovery that doesn't use shadow
copying and doesn't lock DLLs in memory.  TONS of work to be done here
but beginning to get the basic pattern.

First step in resolving #4
2015-08-19 10:43:36 -07:00
Jared Parsons ecf83004c2 Discovery now out of proc 2015-08-19 00:15:10 -07:00
David Poeschl 0e20339f7b Use darker yellow for "skipped" ProgressBar foreground
Fixes #15

Switch the yellow color used in the ProgressBar for skipped tests from
Brushes.Yellow (#FFFF00) to #EBCA00.
2015-08-17 09:17:36 -07:00
Kevin Pilch-Bisson cd16b674bc Output failure info to textbox
Fixes #11
2015-08-15 22:04:50 -07:00
Kevin Pilch-Bisson 12c1d4b36d Add command line support for config files
Fixes #8.
2015-08-15 21:43:24 -07:00
Kevin Pilch-Bisson c759430219 Use toggle buttons instead of radio buttons
Fixes #5.
2015-08-15 21:03:42 -07:00
Kevin Pilch-Bisson 4e22e89d6e Load assemblies from command line on startup
Also, display a dialog while loading

Fixes #10
2015-08-15 20:27:31 -07:00