← Back to issue list

Refactor integration tests to split data and code

View original Github issue

Metadata

Project
craft-parts
Number
#275
Type
issue
State
open
Author
tigarmo
Labels
Created
2022-09-02 18:02:44+00:00
Updated
2025-03-11 14:29:21+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Many integration tests (in `tests/integration`) start out by creating a bunch of temporary files and directories for whatever is being tested (go files, cmake, autotools, etc). This is undesirable because it distracts from the actual thing that we want to check (craft-part's support for those technologies). There are some alternatives to support "test data" in `pytest`. See the rejected PR #272 for an attempt using `pytest-datadir`. We should come to a decision and refactor/cleanup the tests.

Evaluation history

No evaluation history available.