Skip to content

Are suite files necessary for testng regression testing? #2598

@vlsi

Description

@vlsi

It looks like the current pattern is to add test classes to the suites.

For instance, https://github.com/cbeust/testng/blob/40f7935b00d3546187f793e98d0f49ea41ef542d/testng-core/src/test/resources/testng.xml seems to list classes that are not really related.
testng.xml adds no parameters, it adds no important before/after suite listeners, so it is not clear what are the benefits of having such a suite.

However, suites add the following issues:

  1. The global suite file is prone to merge conflicts: different people might add unrelated tests to the same place in the suite file.
  2. One can forget to include the newly added test class to the suite, so the test won't get executed at all.

So I would suggest avoiding the suites unless there's an explicit need for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions