From 55b6fccefd89757a0e65055a5f02014be5e6b5ac Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Thu, 28 Dec 2017 23:46:09 +0200 Subject: [PATCH] Make it explicit to run some tests. --- .gitlab-ci.yml | 1 + hammond-downloader/src/downloader.rs | 3 +++ hammond-gtk/src/utils.rs | 3 +++ 3 files changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b4b5e1..65084e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,7 @@ before_script: - cd hammond-gtk/resources/ && glib-compile-resources --generate resources.xml && cd ../../ - cargo build - cargo test --verbose -- --test-threads=1 + - cargo test --verbose -- --test-threads=1 --ignored variables: # RUSTFLAGS: "-C link-dead-code" diff --git a/hammond-downloader/src/downloader.rs b/hammond-downloader/src/downloader.rs index 9338637..2403cc9 100644 --- a/hammond-downloader/src/downloader.rs +++ b/hammond-downloader/src/downloader.rs @@ -202,6 +202,9 @@ mod tests { } #[test] + // This test inserts an rss feed to your `XDG_DATA/hammond/hammond.db` so we make it explicit + // to run it. + #[ignore] fn test_cache_image() { let url = "http://www.newrustacean.com/feed.xml"; diff --git a/hammond-gtk/src/utils.rs b/hammond-gtk/src/utils.rs index c03c835..b99252d 100644 --- a/hammond-gtk/src/utils.rs +++ b/hammond-gtk/src/utils.rs @@ -101,6 +101,9 @@ mod tests { use super::*; #[test] + // This test inserts an rss feed to your `XDG_DATA/hammond/hammond.db` so we make it explicit + // to run it. + #[ignore] fn test_get_pixbuf_from_path() { let url = "http://www.newrustacean.com/feed.xml";