summaryrefslogtreecommitdiffstats
path: root/tests/ui/src/lib.rs
blob: 56009df6e538ec8de2af5bf1d494a88022034af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//
// imag - the personal information management suite for the commandline
// Copyright (C) 2015-2019 the imag contributors
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; version
// 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
//

extern crate assert_cmd;
extern crate assert_fs;
extern crate env_logger;
extern crate predicates;
extern crate semver;
#[macro_use] extern crate log;
#[macro_use] extern crate pretty_assertions;

#[cfg(test)] mod imag;
#[cfg(test)] mod imag_annotate;
#[cfg(test)] mod imag_category;
#[cfg(test)] mod imag_create;
#[cfg(test)] mod imag_diagnostics;
#[cfg(test)] mod imag_edit;
#[cfg(test)] mod imag_git;
#[cfg(test)] mod imag_gps;
#[cfg(test)] mod imag_grep;
#[cfg(test)] mod imag_header;
#[cfg(test)] mod imag_id_in_collection;
#[cfg(test)] mod imag_ids;
#[cfg(test)] mod imag_init;
#[cfg(test)] mod imag_link;
#[cfg(test)] mod imag_markdown;
#[cfg(test)] mod imag_mv;
#[cfg(test)] mod imag_ref;
#[cfg(test)] mod imag_store;
#[cfg(test)] mod imag_tag;
#[cfg(test)] mod imag_view;
#[cfg(test)] mod imag_bookmark;
#[cfg(test)] mod imag_calendar;
#[cfg(test)] mod imag_contact;
#[cfg(test)] mod imag_diary;
#[cfg(test)] mod imag_habit;
#[cfg(test)] mod imag_log;
#[cfg(test)] mod imag_mail;
#[cfg(test)] mod imag_notes;
#[cfg(test)] mod imag_timetrack;
#[cfg(test)] mod imag_todo;
#[cfg(test)] mod imag_wiki;

static LOG_SYNC: std::sync::Once = std::sync::Once::new();

pub fn setup_logging() {
    LOG_SYNC.call_once(|| { let _ = env_logger::try_init(); });
}