|
I too have run into the problem you describe in the past. It turned out to be my own mistakes. It's likely that one or more tests are not leaving the test fixture class in a clean state, such that a subsequent test(s) fails. But if you run a test in isolation you're always starting from a clean state so it may pass.
Btw, that ReSharper unit test plugin is pretty good. Unfortunately, I'm not a ReSharper user so I have to make use of their old free Unit Test Run 1.0 which they've now discontinued. It's a bit flaky but it works.
Kevin
|
|
|
|
|
yes! it does run in isolation. must be something I am missing. gotta find it.
and yes! resharper is very very cool. Before we got the license I use to run it's 30 day trial. Uninstall it and run it again. Not sure if that still works though. It becomes pain though after a while. But this tool really makes loads of difference.
|
|
|
|
|
I've used ReSharper briefly in the past but I'm currently in the CodeRush/Refactor! camp (actually really just Refactor!). ReSharper is more widely used though. The impression I get is that ReSharper is better at general code analysis and unit testing (CodeRush has only recently started doing this). CodeRush/Refactor! is stronger on refactoring (I think). But anyway both tools are good, though both periodically run into performance problems.
Kevin
|
|
|
|
|
After reading your views about codeRush, I wanted to check it out. Guess what I found... A free license of CodeRush/Refactor.
I still have to form my opinion on this product for thought you may like free stuff.
Get it at http://msdn.microsoft.com/en-us/vcsharp/dd218053.aspx and Enjoy!
|
|
|
|
|
Yes, in fact it's what I use. I have Refactor! Pro but not the full CodeRush (long-term umemployed contractor ) So I use Refactor! Pro + CodeRush Xpress.
I think in the DevExpress forums there is someone who is a ReSharper user who also uses CodeRush Xpress at the same time and reports that the combination is OK.
The feature I like most is quick navigation but I assume you must already have this in ReSharper?
I have a blog post on this here:
Developer Productivity Tools[^]
Kevin
|
|
|
|
|
cool .. i will check this out too. Thanks
|
|
|
|
|
Can't see DevExpress menu in VStudio. How do you bring it up?
Did it happen to you too?
|
|
|
|
|
For the free versions of these products the menu has been removed at the request of Microsoft apparently. I don't have this issue because I get the mnu through having the paid for Refactor! Pro.
However, there is a way round this. See near the bottom of this thread (it's not long) http://community.devexpress.com/forums/t/72689.aspx[^]
There is a registry key you can set to display the menu.
Also there is a keyboard shortcut for invoking a refactoring(s) that you can customise. if you go to VS Tools/Options/Keyboard and search for CodeRush.Refactor you will see a keyboard binding. I set mine to Ctrl+# (UK keyboard).
You also get the refactorings via a smart tag - three grey dots that appear next to a code element when a refactoring is available and the cursor or mouse is at that location.
If you have any other issues try searching or posting in the DevExpress forums. There are lots of very helpful guys there.
Kevin
|
|
|
|
|
Awesome! Registry change did the trick.
Asking you proved to be much faster than sending it to DevExpress team. thanks a lot
|
|
|
|
|
Have you managed to solve your unit test error btw?
Kevin
|
|
|
|
|
Funny
Yes! Some of them are working now. When I run the tests together from outside the user credentials are not getting refreshed. But somehow they do inside VStudio. Maybe Resharper helping it out somehow. I don't know that.
I am still finding reason for not so lucky tests. Thanks for all of your help and introducing me to new tool. I really appreciate that.
Pankaj
|
|
|
|
|
Last year at work I created a suite of ASP.NET UI tests using WatiN (very cool open source app. btw) and NUnit. One set of tests involved logging in and logging out in various roles and verifying the appropriate UI elements were present or not. I had to be careful to make sure I carefully returned things to a clean slate after each test. For other tests I also had a test database that I was writing to, so I had to return that to a clean slate as well.
Sounds like it could be quite tough trying to track down the problem in your case. What I do when I'm at a dead end is comment out all the code and then gradually uncomment until things start going wrong. It can be tedious but sometimes you have no choice.
Kevin
|
|
|
|
|
Well! The way I am going to nail this down is keep skipping the ones not working and keep them for last. And then take one test at a time.
its gonna be a longggggggggg walk ...
|
|
|
|
|
how can i use dbf as database. i want to create dbf files ,read it ,perform operations like update, filter anyone pls help me.
|
|
|
|
|
Use the classes found in System.Data...
Here[^] is a tutorial
Here[^] is a page for connection string for dbf files
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
i want to create dbf file on button click .pls tell me how to do it?
|
|
|
|
|
File.Create("FileName.dbf")
जय हिंद
|
|
|
|
|
nice one
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
I don't know how to create a dbf file sorry.
One idea that comes to mind, a bit hacky but, you could create an empty one and then copy that each time you want a new instance somewhere.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
This question must come from Doofus City, Arizona. It is so Doofus it could win Captain Doofus at the World Doofus Convention. Have you tried reading the fekin manual? Or can't you read?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
williamnw wrote: Doofus City, Arizona
Hey hey hey! At least we're not Arkansas.
|
|
|
|
|
Give him a break - at least he isn't as bad as Rajdeep.NET
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Nobody is as bad as Rajdeep.NET - he is like a information black-hole; once something enters it can never leave.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
|