> On 23 Apr 2019, at 13:47, Tim Mackinnon wrote:
>
> I you refactor some common tests and push them up to a superclass - e.g.
> (ProjectTestCase)
>
> TestCase
> + ProjectTestCase
> Domain1Test
> Domain2Test
>
>
> The tests you push up into ProjectTestCase won’t be run (like
I you refactor some common tests and push them up to a superclass - e.g.
(ProjectTestCase)
TestCase
+ ProjectTestCase
Domain1Test
Domain2Test
The tests you push up into ProjectTestCase won’t be run (like you would expect
with a normal object using normal inheritance). You
What do you suggest ?
Right now, a unit test has to inherit from TestCase, seems quite logical to me.
You want any object to be able to contain unit tests ? How do you want to mark
them ? With a pragma ? What if I forget the pragma ? ;-)
IOW, what exactly is the problem ?
> On 23 Apr 2019,
I just got burned by tests not inheriting from a TestCase superclass… I note
that in 2017, Cyril tried to argue to get this changed to work just like normal
objects (proposing that for P7 tests works like any other object…) but I think
it was just too difficult to argue against a decision made