Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ Tests are serialized to `info/tests/tests.yaml` in the created package and read
When adding extra files to your tests:

1. **During package creation**
- Files are copied to `$PREFIX/etc/conda/test-files/{pkg_name}/{idx}`
- Files are copied to `$PREFIX/info/conda/test-files/{pkg_name}/{idx}`
- `{idx}` is a sequential number assigned to each test
- Files can come from both `source` (work directory) and `recipe` locations
2. **During test execution**
- Files are copied from `$PREFIX/etc/conda/test-files/{pkg_name}/{idx}` to a temporary directory
- Files are copied from `$PREFIX/info/conda/test-files/{pkg_name}/{idx}` to a temporary directory
- Tests run within this temporary directory
- Use relative paths to access these files in your test commands

Expand Down
2 changes: 1 addition & 1 deletion src/package_test/serialize_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub(crate) fn write_test_files(
// For each `Command` test, we need to copy the test files to the package
for (idx, test) in tests.iter_mut().enumerate() {
if let TestType::Command(command_test) = test {
let cwd = PathBuf::from(format!("etc/conda/test-files/{name}/{idx}"));
let cwd = PathBuf::from(format!("info/conda/test-files/{name}/{idx}"));
let folder = tmp_dir_path.join(&cwd);
let files = command_test.write_to_folder(&folder, output)?;
if !files.is_empty() {
Expand Down
Loading