[PATCH 2/2] Add a message to run 'pytest' to run rest of test suite.

Amar Takhar amar at rtems.org
Tue Mar 17 12:55:44 UTC 2020


On 2020-03-17 06:52 +0100, Sebastian Huber wrote:
> So you would not use test classes to group tests for a specific class?

No I would not typically grouping tests involves keeping them in separate files.  
You gain no advantage to keeping them all in one large file.  You can also use 
directory structures to do this as well.

Test classes are useful if you need to do setup and tear down.  For instance 
instantiating a class that all the tests run on or starting / stopping hardware 
you are testing.

Otherwise keep them as plain functions.


Amar.


More information about the devel mailing list