mardi 16 avril 2019

Why is it considered a bad practice to test a class by extending it?

As far as I understand, there are two main methods to test a class.

  1. test class to extend the class under test
  2. test class to create the class under test (composition)

As far as I can tell, the first method is considered to be a bad practice.

but why is that?

Aucun commentaire:

Enregistrer un commentaire