Comments (35)
I'm still on track for 2016.1, although I do need to get a move on. I'm still targeting RC1, as RC2 isn't stable enough (and they've only recently formalised the protocol for running and debugging tests with the new dotnet-test.exe
). I'd really like it to be in the next EAP, and we've been updating those weekly.
from resharper-xunit.
I'm currently planning on adding it into 2016.2, which we haven't announced a release date for, but should be in the next couple of months - the EAP will open before then, anyway.
We were hoping to be able to update a lot of our .net core/aspnetcore support with RC2, but I'm now worried (from that post) that the tooling isn't going to be final. I'd hate for us to end up in a situation similar to the betas/RC1 where we spent a lot of time chasing breaking changes. We need to know more about the plans for the tooling before we can fully commit. Personally, I'm not rather surprised that we're going to end up with an RTM runtime that doesn't have RTM tooling. There are also some outstanding questions for support that have gone unanswered - dotnet/cli#2501.
So, fingers crossed. I'm still aiming for the 2016.2 release post RC2, but I'm also feeling rather cautious.
from resharper-xunit.
No. It requires changes to ReSharper itself, and as of the next ReSharper release (2016.1, previously known as 10.1), xunit is now a part of the product, which essentially makes this repo obsolete (I need to update the readme in time for the release!)
I've got ReSharper working with DNX RC1, but for various reasons, we're not shipping it as part of 2016.1. Firstly, there are a few rough edges, as the test support is designed for Visual Studio's runner, which is a different beast to ReSharper. Secondly, and perhaps more importantly, RC1 is already obsolete, and with RC2 being a complete rewrite and just around the corner, we'd end up shipping broken support rather than no support. We'll have an update post RC2 with fixes and the plan is to include the test runner then.
from resharper-xunit.
ReSharper 2016.3 EAP 1 does include xUnit test runner support finally! However, I do not see any output when using ITestOutputHelper
. Is this working as intended, a known issue to be resolved in a subsequent EAP, or new bug?
from resharper-xunit.
I'm working on it right now. It should be a part of the ReSharper 2016.2 release, which is currently in EAP.
from resharper-xunit.
This appears to be a dotnet-test-xunit
thing. It only reports output when a test fails, so the ReSharper runner can't show it, unless the test fails. I've raised an issue in xunit/xunit#986
from resharper-xunit.
Yeah. Unfortunately, it's not going to be part of 2016.2. It's simply not ready in time - the changes touch too many parts (testing itself, but also has an impact on the existing profiling, coverage, continuous testing, support) and it needs more time to stabilise. It will be part of 2016.3, which will open EAP a couple of weeks after 2016.2 is released. It's disappointing, but it's the right thing to do - it's better to delay and release with good quality, than release something that's buggy.
from resharper-xunit.
Does https://youtrack.jetbrains.com/issue/RSRP-435748 mean this work can move forward?
from resharper-xunit.
No, that's a separate issue. That issue is about the testing framework for writing a plugin - i.e. making sure your plugin works as it should. To get testing working on dnx (I think that's what we call it now), ReSharper needs to invoke a different executable than it currently does - one that will load CoreCLR and launch an entry point that can communicate back to the main ReSharper process.
My currently half-baked plan (post 9.1 release craziness) is to create a new plugin that can prototype ReSharper/dnx test runner support, and use it in the xunit runner until ReSharper gets native support.
from resharper-xunit.
Gotcha. Thanks for the clarification.
from resharper-xunit.
Is there an update on this with 9.2?
from resharper-xunit.
any update on this?
from resharper-xunit.
+1
from resharper-xunit.
any update on this?
from resharper-xunit.
any update on this?
from resharper-xunit.
any update on this?
from resharper-xunit.
This will be part of 10.1, early next year.
from resharper-xunit.
Would this be why the ReSharper extension simply doesn't recognize xUnit tests in a vNext unit test class library? I don't even get as far as trying to run then individually, and invoking the "Run Tests" context menu command simply results in a build.
from resharper-xunit.
Yep, this is how it is at the minute - the xunit extension will recognise the tests, and add the icons in the editor gutter, but because there's no support for running a different runtime, the actual running of the tests is broken. It's going to be fixed as part of ReSharper 10.1, due Q1.
from resharper-xunit.
That is great news, thanks. I'll be sure to try the plugin as soon as possible after that.
from resharper-xunit.
Glad to hear!
from resharper-xunit.
Hi,
R# 10.1 EAP is available, but it looks like that it has no dnx runner features. Will this feature moved to the next R# release?
from resharper-xunit.
It's only the first EAP. There's no DNX support yet. But then again, there is no DNX any more. Things are still pretty fluid in that world. But it is in progress.
from resharper-xunit.
@citizenmatt there's definitely still a DNX, the Dotnet CLI has not been released yet and until that happens (with the rc2-delay and all that) DNX and 1.0.0-rc1-final/update1 bits are still the recommended bit by Microsoft
Are there any rough ETAs on a first stab at running tests in a DNX solution? Currently using the xunit dnx runner integration into the Visual Studio test runner, but it's not R# ;)
from resharper-xunit.
Rough ETA? This year
But seriously folks, I'm working on it right now.
Although I'm uncertain quite what I should target - RC1 or RC2. I'm hoping RC2 comes sooner rather than later, and I can only do the work once. I'll just have to align with where ReSharper's support is, though (I've got some foundational work to do before I can actually look at DNX testing).
Also, is DNX going to remain a thing? I was under the impression that .NET CLI replaced it completely - have I got that wrong?
from resharper-xunit.
No dnx
will become dotnet
in terms of commands at a terminal.
Hopefully, he says, the changes in terms of APIs won't be too large between RC1 & RC2 packages
from resharper-xunit.
The terminology is extremely confusing, but technically DNX RC2 was a thing (e.g. 1.0.0-rc2-16357) - it was just short lived because the project ended. But yeah, you can get builds of dotnet/cli from http://dotnet.github.io/ ... dotnet essentially does everything dnx, dnvm, dnu did.
from resharper-xunit.
@citizenmatt With the release of RC2 still set to TBD status (and not looking like it's coming anytime soon based upon the last couple of community standups), have you considered targeting RC1 or are you still leaning towards RC2?
I was super excited to read the xUnit support announcement:
http://blog.jetbrains.com/dotnet/2016/03/17/resharper-ultimate-2016-1-formerly-10-1-eap-6/
Until I read the final sentence in the section:
One thing to note is that this build does not yet support running tests for DNX projects, this will hopefully be included in a future build.
Are we still on track to see support for this in 2016.1 or is this feature going to slip?
from resharper-xunit.
Does any work need to be contributed on this?
from resharper-xunit.
Looks like RC2 is literally right around the corner.
https://blogs.msdn.microsoft.com/dotnet/2016/05/06/net-core-rc2-improvements-schedule-and-roadmap/
Any update on when we're likely to see the tooling support for Resharper?
from resharper-xunit.
Now that .NET Core 1.0 RTM is out, is there any update on the timeline for this? I guess the VS tooling parts aren't RTM yet, but I don't know to what extent that matters for this...
from resharper-xunit.
Hi @citizenmatt, I'm wondering if you have an updated ETA at this point? I noticed you just released EAP 10 but I haven't gotten the chance to look at it yet.
from resharper-xunit.
I agree with that. Thanks for clarifying.
from resharper-xunit.
Very exited about Test Runner support.
I don't get output using ITestOutputHelper using Visual Studio's Test Explorer, so no loss there.
from resharper-xunit.
@citizenmatt Cool, thanks for all your work on this issue.
from resharper-xunit.
Related Issues (20)
- 2.3.3 showing diagnostic Errors popup where 9 wasn't, how to disable? HOT 5
- How to debug a specific set of data of a theory? HOT 2
- Add support for R# 10.1 (EAP / Wave 5.0) HOT 26
- Difference in count of available tests HOT 6
- Cannot install v2.3.4 for Resharper 1.0.2 HOT 7
- Plugin not finding test assembly HOT 1
- Running a test marked as [Fact] runs tests in the same class marked with [Theory] HOT 1
- when test methods are in base class, traits on a child class, they show as <Uncategorized> HOT 1
- Running Nancy tests fails with ArgumentException HOT 2
- dotCover 10.0.2 shows empty coverage when running tests using this extension HOT 1
- Using dnx version > to 451 makes Unit test disappears from test explorer HOT 1
- Unable to run tests for Universal Class Library HOT 7
- Missing test runner context icon from gutter HOT 8
- Not working for .NET Core HOT 1
- Cannot use Resharper Test Session HOT 1
- Debug test randomly identifies the test as skip despite no xunit skip
- After 2016.2 Update, discovering xUnit Theory tests causes White Screen when selecting large blocks that need to be discovered HOT 1
- XUnit 2.1 Custom CategoryTraitAttribute is ignored in Unit Test Explorer - Group by HOT 2
- Resharper 2017.2 Can't support VS2015
- Theory test runs only once HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resharper-xunit.