[squeak-dev] The Inbox: SUnitTools-jr.5.mcz
jakres+squeak at gmail.com
Mon Jan 10 17:24:35 UTC 2022
Since there are so many different combinations you can probably make this
arbitrarily complex. Then 7/8 of the feature are the guessing of the
category. The question is whether it is worth it.
You could search all registered packages that start with the same stem for
subclasses of TestCase. That may introduce some unwanted dependency between
trunk packages, so you may want to stick to categories rather than packages
instead. You may program for the known patterns, so add your *Tests-*
pattern to the list. Which one comes next? If there is no existing test
category with the stem, which of the conventions do you choose?
Per KISS I would stick to just one convention, which can also be the one
you mentioned rather than the one I implemented. Changing the category of
the class afterwards should be easy enough.
<christoph.thiede at student.hpi.uni-potsdam.de> schrieb am Mo., 10. Jan.
> Hi Jakob,
> while reviewing this patch, I noticed that the category heuristic does not
> work in all situations. For example, it classifies a newly created
> WideSymbolTest under Collections-Tests rather than CollectionTests-Text. Do
> you have an idea how to improve the heuristic (e.g., search for other test
> classes in the same package, ...)? :)
> *Sent from **Squeak Inbox Talk
> On 2020-03-07T14:08:02+00:00, christoph.thiede at student.hpi.uni-potsdam.de
> > Ah, ok :-)
> > <http://www.hpi.de/>
> > ________________________________
> > Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im
> Auftrag von Jakob Reschke <forums.jakob at resfarm.de>
> > Gesendet: Samstag, 7. März 2020 14:57:12
> > An: The general-purpose Squeak developers list
> > Betreff: Re: [squeak-dev] The Inbox: SUnitTools-jr.5.mcz
> > Thiede, Christoph <Christoph.Thiede at student.hpi.uni-potsdam.de
> <mailto:Christoph.Thiede at student.hpi.uni-potsdam.de>> schrieb am Sa.,
> 7. März 2020, 14:31:
> > What is the reason to use ClassBuilder instead of
> > The ability to specify the target environment.
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev