Package : perl-Test-TempDir-Tiny > RPM : perl-Test-TempDir-Tiny-0.18.0-4.mga9.src.rpm
Basic items
Name | perl-Test-TempDir-Tiny |
Version | 0.18.0 |
Release | 4.mga9 |
URL | https://metacpan.org/release/Test-TempDir-Tiny |
Group | Development/Perl |
Summary | Temporary directories that stick around when tests fail |
Size | 23KB |
Arch | noarch |
License | ASL 2.0 |
Description
This module works with Test::More to create temporary directories that
stick around if tests fail.
It is loosely based on Test::TempDir, but with less complexity, greater
portability and zero non-core dependencies. (Capture::Tiny is
recommended for testing.)
The "tempdir" function is exported by default. When called, it
constructs a directory tree to hold temporary directories.
If the current directory is writable, the root for directories will be
./tmp. Otherwise, a File::Temp directory will be created wherever
temporary directories are stored for your system.
Every *.t file gets its own subdirectory under the root based on the
test filename, but with slashes and periods replaced with underscores.
For example, t/foo.t would get a test-file-specific subdirectory
./tmp/t_foo_t/. Directories created by "tempdir" get put in that
directory. This makes it very easy to find files later if tests fail.
The test-file-specific name is consistent from run-to-run. If an old
directory already exists, it will be removed.
When the test file exits, if all tests passed, then the
test-file-specific directory is recursively removed.
If a test failed and the root directory is ./tmp, the test-file-specific
directory sticks around for inspection. (But if the root is a File::Temp
directory, it is always discarded).
If nothing is left in ./tmp (i.e. no other test file failed), then ./tmp
is cleaned up as well.
This module attempts to avoid race conditions due to parallel testing.
In extreme cases, the test-file-specific subdirectory might be created
as a regular File::Temp directory rather than in ./tmp. In such a case,
a warning will be issued.
stick around if tests fail.
It is loosely based on Test::TempDir, but with less complexity, greater
portability and zero non-core dependencies. (Capture::Tiny is
recommended for testing.)
The "tempdir" function is exported by default. When called, it
constructs a directory tree to hold temporary directories.
If the current directory is writable, the root for directories will be
./tmp. Otherwise, a File::Temp directory will be created wherever
temporary directories are stored for your system.
Every *.t file gets its own subdirectory under the root based on the
test filename, but with slashes and periods replaced with underscores.
For example, t/foo.t would get a test-file-specific subdirectory
./tmp/t_foo_t/. Directories created by "tempdir" get put in that
directory. This makes it very easy to find files later if tests fail.
The test-file-specific name is consistent from run-to-run. If an old
directory already exists, it will be removed.
When the test file exits, if all tests passed, then the
test-file-specific directory is recursively removed.
If a test failed and the root directory is ./tmp, the test-file-specific
directory sticks around for inspection. (But if the root is a File::Temp
directory, it is always discarded).
If nothing is left in ./tmp (i.e. no other test file failed), then ./tmp
is cleaned up as well.
This module attempts to avoid race conditions due to parallel testing.
In extreme cases, the test-file-specific subdirectory might be created
as a regular File::Temp directory rather than in ./tmp. In such a case,
a warning will be issued.
Media information
Distribution release | Mageia cauldron |
Media name | core-release |
Media arch | x86_64 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2022-03-21 02:59:07 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |