From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21927 invoked by alias); 16 Mar 2004 12:55:50 -0000 Mailing-List: contact mauve-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sources.redhat.com Received: (qmail 21917 invoked from network); 16 Mar 2004 12:55:47 -0000 Received: from unknown (HELO mailhub02.unibe.ch) (130.92.9.53) by sources.redhat.com with SMTP; 16 Mar 2004 12:55:47 -0000 Received: from localhost (scanhub02.unibe.ch [130.92.254.66]) by mailhub02.unibe.ch (Postfix) with ESMTP id A69FE76462; Tue, 16 Mar 2004 13:55:46 +0100 (MET) Received: from mailhub02.unibe.ch ([130.92.9.53]) by localhost (scanhub02 [130.92.254.66]) (amavisd-new, port 10024) with LMTP id 11621-02-6; Tue, 16 Mar 2004 13:55:44 +0100 (CET) Received: from asterix.unibe.ch (asterix.unibe.ch [130.92.64.4]) by mailhub02.unibe.ch (Postfix) with ESMTP id 429F9764E1; Tue, 16 Mar 2004 13:55:42 +0100 (MET) Received: from iam.unibe.ch (howland [130.92.65.22]) by asterix.unibe.ch (8.11.7p1+Sun/8.11.7) with ESMTP id i2GCteb04285; Tue, 16 Mar 2004 13:55:40 +0100 (MET) Date: Tue, 16 Mar 2004 12:55:00 -0000 Subject: Re: [Q] Number of unit tests in Mauve and of assertions in Classpath? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mime-Version: 1.0 (Apple Message framework v552) Cc: "Sascha Brawer" , "Stephen Crawley" , To: "Byron Vargas" From: =?ISO-8859-1?Q?Markus_G=E4lli?= In-Reply-To: <000301c40b03$cb6a1130$9865fea9@yourviu5vcdub5> Message-Id: <39CB7738-7749-11D8-9AAE-000A958C4F3C@iam.unibe.ch> Content-Transfer-Encoding: quoted-printable X-Virus-checked: by University of Berne X-SW-Source: 2004-q1/txt/msg00018.txt.bz2 Hi Byron, > Here are some stats for you. Thanks a lot for that detailed description. This is really of some use=20 for me, I just could not include it in my paper as the submission deadline was one=20 hour ago. I'd be curious, if you could also provide me with a version name of=20 NewJLibrary, where this data holds. As I was not successful to download Mauve (I tried the ftp version, but the server seems to be down, then my OS-X stopped without throwing=20 any exception...), I would also like to know how many assertions are called inside the=20 Mauve tests, maybe you or someone else can answer this question too? Then I stop=20 bothering you, promised :-) Thanks again, this can be of some great value in one of the next papers=20 I want to write, I'll submit the old one as soon as I get it accepted somewhere. Cheers, Markus > > NewJ Library is made up of the Pie Library, which is the foundation=20 > layer > for automated object management and approximating Java language=20 > features in > C++, and the Core J2 Library, which implements the core Java APIs like=20 > lang, > io, util, etc. in C++. Both libraries combined consist of the=20 > following: > > Total lines: 100757 > Comment lines: 22542 (22.372638702% of total) > Source code lines: 53245 (52.844963074% of total) > Blank lines: 24970 (24.782396317% of total) > > Number of assertions in Pie Library: 43 > Number of assertions in Core J2 Library (java.* packages): 441 > Number of assertions in Core J2 Library (private packages): 221 > > Additionally, the code base includes debug-only sections which take > advantage of conditional compilation inherent in C++. > > Number of units tests, coverage, lines: Same as the Java version of=20 > Mauve > for the packages and classes we support. > > "Assertions not executed by any unit test": We have no quantitative > information on that. > > By "over several versions," what should I understand that to mean? > (a) By "over several versions" of NewJ Library, like 0.1, 0.2, 0.3. If=20 > so, > that would be very difficult to provide to you. > (b) By "over several versions" of the Java API or specification. If=20 > so, NewJ > Library supports 1.2 and some 1.4 features like assertions. Everything=20 > is in > the same code base, compile-in or compile-out at build time, so it's=20 > all the > same metrics. > > For more detailed information, download the trial version from > pure-native.com, read the NewJ Developer's Guide (they're quite=20 > detailed and > only around 50 pages), and peruse the included header files and=20 > samples. > > Hope this helps. > > Regards, > Vargas > http://www.pure-native.com/newj.html > > ----- Original Message ----- > From: "Markus G=E4lli" > To: "PureNative Software" > Cc: "Sascha Brawer" ; "Stephen Crawley" > ; > Sent: Monday, March 15, 2004 8:21 AM > Subject: Re: [Q] Number of unit tests in Mauve and of assertions in > Classpath? > > >> Hi Vargas, >> >>> Regarding your question: >>> >>>>>> - Do you know any (as responsive :-) java open source community=20 >>>>>> with >>>>>> some big project and which >>>>>> uses both, JDK 1.4 (thus theoretically assertions) and unit tests? >>> >>> Although not a free (as in GNU) software project, NewJ Library for >>> C++, an >>> independent 100% native implementation of the core Java API, uses=20 >>> both >>> unit >>> tests and assertions. The test cases are our C++ version of Mauve, >>> which >>> make use of the gnu::testlet::Testlet and the rest of the testing >>> framework >>> just like the Java version. The assertions are actually built right >>> into the >>> Core J2 Library implementation, which may be compiled in or out for >>> debug or >>> release builds. As you might expect, the use of both unit tests (like >>> Mauve) >>> and assertions find more coding or logic errors than either one=20 >>> alone. >>> Furthermore, unit tests and assertions serve slightly different >>> purposes and >>> are applicable to slightly different circumstances. >> Thanks for that info. >> >> Maybe I am asking for too much here, but I would be very curious to >> know the >> >> - #lines of code(NewJ Library), >> - #assertions(NewJ Library), >> - #unit tests and >> - #lines of code(unit tests) >> -#coverage of the unit tests >> -#assertions not executed by any unit test >> - over several versions? >> >> So if you happen to be able to answer only some of this questions,=20 >> this >> would be great. >> >> Cheers, >> >> Markus >> >