buildstream-migration / bst-staging

GNU Lesser General Public License v2.1
0 stars 0 forks source link

`integration` pytest mark we use in our test suite is a misnomer #949

Open Cynical-Optimist opened 4 years ago

Cynical-Optimist commented 4 years ago

See original issue on GitLab In GitLab by [Gitlab user @phildawson] on Mar 7, 2019, 09:52

Summary

The integration pytest mark we use in our test suite is a misnomer. In reality, tests with this mark are not necessarily integration tests, we use the mark to label tests which use a sandbox. It would be nice to replace this mark with one which better reflects its use.

Possible fixes

Replace integration pytestmark with sandboxed mark or similar.

Other relevant information

This was originally discussed in the comments on !1158


Cynical-Optimist commented 4 years ago

In GitLab by [Gitlab user @phildawson] on Mar 7, 2019, 09:52

mentioned in merge request !1158

Cynical-Optimist commented 4 years ago

In GitLab by [Gitlab user @phildawson] on Mar 7, 2019, 09:54

changed the description

Cynical-Optimist commented 4 years ago

In GitLab by [Gitlab user @tlater] on Mar 8, 2019, 15:14

Note that the HAVE_SANDBOX variable also exists. It fulfills a similar purpose (ensuring that sandbox tests are not executed on certain systems), so perhaps the two concepts could be conflated. The HAVE_SANDBOX variable is probably a superset of the integration mark.

Cynical-Optimist commented 4 years ago

In GitLab by [Gitlab user @cs-shadow] on May 23, 2019, 15:16

mentioned in merge request !1353

Cynical-Optimist commented 4 years ago

In GitLab by [Gitlab user @willsalmon] on May 30, 2019, 10:56

There are some tests that need a sand box but are not covered by the integration marker.

That said the integration marker dose seem misleading a little

Cynical-Optimist commented 4 years ago

In GitLab by [Gitlab user @tristanvb] on May 31, 2019, 07:04

The reason why we have separated tests under the integration marker to be run optionally is mainly:

We chose the word "integration" because downloading a runtime essentially meant integrating with an external component, this could very well be a misnomer, just wanted to point out the essential reasons why it is important to have this separation, as this might help shed some light in finding a better name for it.

Cynical-Optimist commented 4 years ago

In GitLab by [Gitlab user @tristanvb] on May 31, 2019, 07:11

I should add one more thing: I consider it a bug that the integration tests has a separate fixture or works in any way different from the regular tests.

Over all, this could do well with a lot of untangling.