summaryrefslogtreecommitdiff
path: root/tests/conftest.py
Commit message (Collapse)AuthorAgeFilesLines
* conftest: more useful multiprocessing printAngelos Evripiotis2019-10-291-4/+4
| | | | | | Print what we set to, not what was set before us. This enables us to test that `spawn` mode is really enabled by looking at output from the tests.
* tests: remove mark.in_subprocessAngelos Evripiotis2019-10-221-22/+0
| | | | | It seems we don't need this anymore, thanks to cleaning up gRPC background threads.
* tests/conftest: implement BST_FORCE_START_METHODAngelos Evripiotis2019-10-181-0/+15
|
* setup.cfg: Fix xdg env vars to not affect the hostbschubert/fix-xdg-temppathsBenjamin Schubert2019-10-081-0/+18
| | | | | | | | | | | | | | | | A fix was made in https://gitlab.com/BuildStream/buildstream/merge_requests/1244 in order to set xdg_* env variables inside of the test's directory to avoid importing data from the host. There was however still two problems: - When a variable was not set, it was set with a relative path, which would create a configuration for BuildStream that is invalid. - When a variable was set and running with pytest directly, we would still use the variable's value, which would be the host one. This ensure this can never happen, by not relying on the same variable's name and always overriding them.
* tests: Add autouse fixture to reset global state in node.pyxjuerg/synthetic-file-indexJürg Billeter2019-09-041-1/+1
|
* tests: Catch tests that don't shut down background threadsjuerg/forkJürg Billeter2019-09-031-0/+1
|
* tests: Implement and register in_subprocess pytest markTom Mewett2019-08-301-0/+22
|
* testing/sources: Automatically register plugin sourcesBenjamin Schubert2019-08-261-4/+4
| | | | | This fixes a bug where third party plugins cannot get tested automatically because they are not part of BuildStream.
* Store Platform reference in Context instance variableJürg Billeter2019-07-171-17/+0
| | | | | This allows us to remove the platform reset helpers in tests/conftest.py.
* Remove OSTree plugin; It lives now in the bst-plugins-experimental repoJavier Jardón2019-05-141-2/+0
|
* testing: make Integration cache fixture available in testing modulePhil Dawson2019-04-261-50/+3
| | | | | | The cli_integration fixture provided in testing.runcli depends on the integration cache fixture. This was missed when cli_integration was originally exposed.
* plugintestutils: Rename 'plugintestutils' package to 'testing'phil/rename-plugintestutilsPhil Dawson2019-04-161-2/+2
| | | | | | | | | - Rename plugintestutils to testing. - Don't run the tests from bst-plugins-template. This imports buildstream.plugintestutils so will have to be disabled to get through CI. This can be re nabled once bst-plugins-template has been patched.
* Make templated source tests available in buildstream.plugintestutilsPhil Dawson2019-04-121-0/+25
|
* runcli.py: Add a CLI test fixture for remote-executionMartin Blanchard2019-03-251-1/+34
| | | | https://gitlab.com/BuildStream/buildstream/issues/629
* tests: Add a --remote-execution CLI optionsMartin Blanchard2019-03-251-2/+17
| | | | | | | | Unlike the --integration option that activates additional tests marked with 'integration', this new --remote-execution option deactivates all the tests except those marked with 'remoteexecution'. https://gitlab.com/BuildStream/buildstream/issues/629
* tests: Move conftest.py into tests/ subdirectoryTristan Van Berkom2019-03-201-0/+109
Pytest implicitly loads this file from the CWD where it runs, which is usually the project toplevel directory, but also supports loading it from the `tests/` subdirectory where tests are run from. Placing it into the `tests/` subdirectory is not perfectly explicit, but is at least a hint to the unsuspecting developer that this file is related to tests.