Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

Commit 298a829

Browse files
committedMar 15, 2017
Log to null while testing
1 parent 0cbb09a commit 298a829

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed
 

‎.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ perl:
77
- '5.12'
88
- '5.10'
99
before_install:
10-
- 'sudo mkdir /var/log/keepass4web'
11-
- 'sudo chmod 777 /var/log/keepass4web'
1210
- 'sudo apt-get update -qq'
1311
- 'sudo apt-get install -qq libkeyutils-dev libkeyutils1 libmagic1 libmagic-dev'
1412
install: 'cpanm --installdeps . --with-all-features --with-recommends --with-suggests --notest --quiet'

‎MANIFEST

+1
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,4 @@ t/001_base.t
110110
t/002_routes_no_session.t
111111
t/003_routes_no_csrf.t
112112
t/004_routes.t
113+
t/env/test.yml

‎MANIFEST.SKIP

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Makefile$
1010
^t.*sessions
1111
^cover_db
1212
^.*\.log
13-
^.*\.sw[o-z]$
13+
^.*\.sw[a-z]$
1414
.gitignore
1515
environments/development.yml
1616
MYMETA.json

‎lib/KeePass4Web/Test.pm

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package KeePass4Web::Test;
22

3+
BEGIN {
4+
$ENV{DANCER_ENVDIR} = 't/env';
5+
$ENV{DANCER_ENVIRONMENT} = 'test';
6+
}
7+
38
use HTTP::Request::Common ();
49
use Plack::Test;
510
use KeePass4Web;
@@ -62,3 +67,5 @@ sub ajax {
6267
}
6368

6469
sub csrf_token { $csrf_token = shift }
70+
71+
1;

‎t/002_routes_no_session.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use strict;
22
use warnings;
33

4-
use KeePass4Web;
54
use KeePass4Web::Test;
5+
use KeePass4Web;
66
use KeePass4Web::Constant;
77
use Test::More tests => 23;
88
use JSON ();

‎t/env/test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
logger: 'Null'

0 commit comments

Comments
 (0)
This repository has been archived.