Re: nunit improvement
"Charlie Poole" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <00db01c8aa1e$f0099600$6401a8c0@ferrari> |
HI Yannick, The info saved in the visual state doesn't include colors. That's because the result info, which is the source of the colors is saved in TestResult.xml and it seems like a bad idea to save the same thing in two places. However, the info saved in those files is only pertinent when you first run NUnit and load a set of tests. At all other times, the info that is kept in memory is used. As you found out, when a test is run, NUnit clears the results in the tree. If we did not do that, I believe the display might be confusing in some situations. But I agree that it would be useful to keep old results in some situations, at the user's option. In that case, we may want to consider clearing only the parts of the tree that represent the tests being executed. I hope you will file a Feature Request for this idea. I hope you will join us on the nunit-users mailing list to continue this discussion. Charlie _____ From: PIN Yannick [mailto:[email protected]] Sent: Tuesday, April 29, 2008 6:14 AM To: Charlie Poole Subject: RE: nunit improvement Hello again, I have understand some things. The method onRunStarting in TestSuitetreeview call ClearResults in the same file that clear the root node (rootNode.ClearResults(); ) I think that according to a check box, it would be possible to clear the entire tree or not (or best, clear only checked node). What are the impact for the xml saved ? is it the image of the color of the treeview, I mean that if the treeview color is not erased, the xml will contains the result of all tests that have a color ? Regards. PIN Yannick Validation team Gemalto Tel: +33 4 42 36 30 62 Fax: +33 4 42 36 58 09 Avenue du Jujubier, ZI Athélia IV BP90 13702 La CIOTAT [email protected] <http://www.gemalto.com> www.gemalto.com _____ From: Charlie Poole [mailto:[email protected]] Sent: lundi 28 avril 2008 19:47 To: PIN Yannick Subject: RE: nunit improvement Hi Pin, Glad that helped. Rearding the color, I meant to ask about the properties of the suite that is red. However, the message behind the properties display seems to give the answer. You appear to have placed an Assert in the TestFixtureTearDown method of TestGSCIS. This causes an error in the teardown, after all the tests have run. It's generally not useful to put an Assert in TestFixtureSetUp or TestFixtureTearDown fjor this reason. Charlie _____ From: PIN Yannick [mailto:[email protected]] Sent: Monday, April 28, 2008 8:59 AM To: Charlie Poole Subject: RE: nunit improvement Hello, Thank you very much for your fast response. According to your answer in fact, I have found the corresponding option. It solve my issue for the loading of the campaign. For the properties of the test, see attached file. In fact, I though it was a color bug of the tools but I notice a wrong comparison behind (errors and failure tab) Perhaps it is the reason but I do not understand why the test himself is not red. Thank you very much for your support. Regards. PIN Yannick Validation team Gemalto Tel: +33 4 42 36 30 62 Fax: +33 4 42 36 58 09 Avenue du Jujubier, ZI Athélia IV BP90 13702 La CIOTAT [email protected] <http://www.gemalto.com> www.gemalto.com _____ From: Charlie Poole [mailto:[email protected]] Sent: lundi 28 avril 2008 16:50 To: PIN Yannick Subject: RE: nunit improvement Hi Yannick, I'll take a look at how that can be made more efficient but you can always turn it off in the options. Regarding the red suite with green tests, this is actually valid in some circumstances. What do the properties for that suite indicate? Charlie _____ From: PIN Yannick [mailto:[email protected]] Sent: Monday, April 28, 2008 3:06 AM To: [email protected] Subject: nunit improvement Hello, I have a performance issue with nunit 2.4.7. I have a big campaign. In fact, when you start nunit, it read a file (x_visual_state.xml) that is very large (3 Mo) and because of that, the loading duration is about 15 minutes. When I modify the file TestSuitetreeview.cs by adding a Boolean firstLoad to avoid the first load, the performance is ok (about 20s to start NUnit). Perhaps an improvement can be done in the xml file (not store all campaign status but only open item) ? Moreover, I have a color bug. All tests are green in a directory, but the parent directory is red. The same problem exists in 2.0 version so it is an very old one. <<TestSuiteTreeView.cs>> But in fact, it is a good tool. Congratulation for it :-):-) I hope that my remarks can improve the tool. Regards. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users