public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
* test suite, introdutory help.
@ 2002-08-08  6:32 Daniel Dallas
  2002-08-09  8:46 ` Brian Jones
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Daniel Dallas @ 2002-08-08  6:32 UTC (permalink / raw)
  To: mauve-discuss

Dear test expert,


I need your help.  I am the head tutor for an introductory software
engineering subject at RMIT in Melbourne Australia.  I work with
undergraduate students with no experience in software testing.

We design software with UML and then code it in Java, we are ok with
this.  We now want to write test harnesses and develop some test cases.
I and other tutors are new to this and are currently following a text
book written for structured programming.

Do you have a simple intro to writing test harnesses for object oriented
software?  I hope that projects like Mauve will be more practical then
our current text book, and provide a basis for earning to code a test
harness and devise some test cases. 

I had a look at this thread on the discussion:
http://sources.redhat.com/ml/mauve-discuss/2002-q3/msg00019.html
but this is programmed in shell.  I would prefer to write in Java,
though we could use shell.  Anyway, these scripts look too complicated
for the intro I'm looking for.

Do you have something simple for undergraduate Java programmers to start
writing (or using open source) simple test harnesses on their projects?

Thanks,
Daniel Dallas.
RMIT Melbourne.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: test suite, introdutory help.
  2002-08-08  6:32 test suite, introdutory help Daniel Dallas
@ 2002-08-09  8:46 ` Brian Jones
  2002-08-11  8:54 ` Mark Wielaard
  2002-08-12  9:50 ` Anthony Green
  2 siblings, 0 replies; 4+ messages in thread
From: Brian Jones @ 2002-08-09  8:46 UTC (permalink / raw)
  To: Daniel Dallas; +Cc: mauve-discuss

"Daniel Dallas" <ddallas@cs.rmit.edu.au> writes:

> Do you have something simple for undergraduate Java programmers to start
> writing (or using open source) simple test harnesses on their projects?

This depends on whether you are using a fully functional JVM or one of
the less functional free JVMs.  In the Java world, most programmers
use JUnit, I think from www.junit.org, which generally requires
reflection to work in the JVM.  In the developmental world of yet
another free JVM often testing needs to be done on a virtual machine
+ class library that doesn't have a functional reflection
implementation.

Mauve is simple in that we use something we have that we know works,
i.e. the shell, to find test cases and execute them.  JUnit uses java.
Both frameworks are similar in that tests indicate pass/fail and
through one means or another accumulate the results and display them
nicely.

Since you're using UML you should be able to at least think about how
to generate test cases for all of your object interactions.  I'm not
aware of work in the area of coverage analysis for Java although I
know some of this can be done through the profiling interface of
JDPA.  I think some of the truly expensive UML tools that go the step
of generating code or stubs also help with generating tests, but I've
zero experience with these.

-- 
Brian Jones <cbj@gnu.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: test suite, introdutory help.
  2002-08-08  6:32 test suite, introdutory help Daniel Dallas
  2002-08-09  8:46 ` Brian Jones
@ 2002-08-11  8:54 ` Mark Wielaard
  2002-08-12  9:50 ` Anthony Green
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Wielaard @ 2002-08-11  8:54 UTC (permalink / raw)
  To: Daniel Dallas; +Cc: mauve-discuss

Hi,

On Thu, 2002-08-08 at 15:31, Daniel Dallas wrote:
> Do you have a simple intro to writing test harnesses for object oriented
> software?  I hope that projects like Mauve will be more practical then
> our current text book, and provide a basis for earning to code a test
> harness and devise some test cases. 
> 
> I had a look at this thread on the discussion:
> http://sources.redhat.com/ml/mauve-discuss/2002-q3/msg00019.html
> but this is programmed in shell.  I would prefer to write in Java,
> though we could use shell.  Anyway, these scripts look too complicated
> for the intro I'm looking for.

As Brian already explained we have some special needs when running Mauve
with VMs that might not be very stable so they crash and burn while
running the test suite. That also means that we use as less advanced
features as possible. Please take a look at JUnit for a similar test
framework that doesn't have those constrains and which also comes with a
little bit more documentation <http://www.junit.org/>

> Do you have something simple for undergraduate Java programmers to start
> writing (or using open source) simple test harnesses on their projects?

I came across the following course that uses Mauve as an example of how
to write unit tests but which includes its own test framework. Maybe
that group can help.
http://www.cs.waikato.ac.nz/~jcleary/230/

Cheers,

Mark

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: test suite, introdutory help.
  2002-08-08  6:32 test suite, introdutory help Daniel Dallas
  2002-08-09  8:46 ` Brian Jones
  2002-08-11  8:54 ` Mark Wielaard
@ 2002-08-12  9:50 ` Anthony Green
  2 siblings, 0 replies; 4+ messages in thread
From: Anthony Green @ 2002-08-12  9:50 UTC (permalink / raw)
  To: Daniel Dallas; +Cc: mauve-discuss

On Thu, 2002-08-08 at 06:31, Daniel Dallas wrote:
> Do you have something simple for undergraduate Java programmers to start
> writing (or using open source) simple test harnesses on their projects?

Check out junit.  I don't have a URL handy (I'm writing this at 30,000
feet), but you should be able to google it up easily.

AG


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-12 16:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-08  6:32 test suite, introdutory help Daniel Dallas
2002-08-09  8:46 ` Brian Jones
2002-08-11  8:54 ` Mark Wielaard
2002-08-12  9:50 ` Anthony Green

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).