Loading Essential package from Monticello (was [Newbies] isKindOf considered questionable)

squeak414 at free.fr squeak414 at free.fr
Thu Jul 3 16:52:56 UTC 2008


Quoting Lukas Renggli <renggli at gmail.com>:

>
> >  Are there any more instructions anywhere please? In particular, I don't
> seem to
> >  be able to scope it down to just my package. So for example, when I change
> a
> >  single test, which has 11 checks in code critics, to subclass
> ESLintTestCase, it
> >  shows 75 run, 5 passes, 0 expected failures, 69 failures, 1 errors, 0
> unexpected
> >  passes. Nearly all the checks shown are way outside my package, for
> example:
>
> Did you have a look at how ESlintSelfTest>>#environment restricts Lint
> to a certain package? It might now cleanly work as certain rules only
> work on the level of classes and this might give you some wrong hits
> for classes that you only extend. This is a bug in my code and should
> probably be fixed.
>
> Cheers,
> Lukas
>

That's it. I created a ESLintTestCase subclass:
#MyScopedESLintTestCase>>#environment
	^ super environment forPackageNamed: 'MyPackage'

and subclassed the scoped version for all my test. Now gives just the behaviour
I was after.

thanks again,   ...Stan






More information about the Beginners mailing list