From: Stephen Leake <stephen_leake@acm.org>
To: comp.lang.ada@ada-france.org
Subject: Re: Ada-Python inter-language testing
Date: 17 Jan 2005 14:11:21 -0500
Date: 2005-01-17T14:11:21-05:00 [thread overview]
Message-ID: <mailman.64.1105989109.527.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <h5OGd.8116$GU.279866@twister1.libero.it>
Matteo Bertini <matteob@naufraghi.net> writes:
> I'm doing some coding for an Ada-Python bridge to decouple test-code
> from ada-code.
>
> The idea is:
>
> (A) Have some Ada code to test.
Yes, I have lots of that :).
> (B) Write down an Ada package exporting procedures and functions in
> a C compatible way.
Yuck. No named aggregates, no tagged types!
> (C) Write a Pyrex[1] (Python[2] like language for making C modules)
> bridge to access Ada exported procedures and functions.
If you say so.
> (D) Write unit-testing in Python, being free to add/remove/change
> test-cases without recompiling and with a lot of introspection
> features.
And free to spend lots of time chasing bugs in the test framework.
If Ada is a good language for writing code, why not write (test) code
in Ada?
The "introspection" you speak of will be of no benefit; it can't see
the Ada code.
Just use AUnit.
> Considering that the point (B) is error prone and time consuming,
Exactly.
> could ever someone in the real world need something like this?
Not from me.
--
-- Stephe
next prev parent reply other threads:[~2005-01-17 19:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-17 12:21 Ada-Python inter-language testing Matteo Bertini
2005-01-17 13:32 ` Martin Krischik
2005-01-17 19:11 ` Stephen Leake [this message]
2005-01-17 21:09 ` Simon Wright
2005-01-18 9:15 ` Matteo Bertini
2005-01-18 21:37 ` Jerome Hugues
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox