Package : perl-Test2-Plugin-FauxHomeDir

Package details

Summary: Setup a faux home directory for tests

Description:
This module sets up a faux home directory for tests. The home directory is
empty, and will be removed when the test completes. This can be helpful
when you are writing tests that may be reading from the real user
configuration files, or if it writes output to the user home directory.

At the moment this module accomplishes this by setting the operating system
appropriate environment variables. In the future, it may hook into some of
the other methods used for determining home directories (such as 'getpwuid'
and friends). There are many ways of getting around this faux module and
getting the real home directory (especially from C). But if your code uses
standard Perl interfaces then this plugin should fool your code okay.

This module sets the native environment variables for the home directory on
your platform. That means on Windows 'USERPROFILE', 'HOMEDRIVE' and
'HOMEPATH' will be set, but 'HOME' will not. This is important because your
testing environment should match as closely as possible what the actual
environment will look like.


URL: http://metacpan.org/release/Test2-Plugin-FauxHomeDir
License: GPLv1+ or Artistic

Maintainer: nobody

List of RPMs