Make it explicit to run some tests.

This commit is contained in:
Jordan Petridis 2017-12-28 23:46:09 +02:00
parent 1d78ab7c42
commit 55b6fccefd
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6
3 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,7 @@ before_script:
- cd hammond-gtk/resources/ && glib-compile-resources --generate resources.xml && cd ../../ - cd hammond-gtk/resources/ && glib-compile-resources --generate resources.xml && cd ../../
- cargo build - cargo build
- cargo test --verbose -- --test-threads=1 - cargo test --verbose -- --test-threads=1
- cargo test --verbose -- --test-threads=1 --ignored
variables: variables:
# RUSTFLAGS: "-C link-dead-code" # RUSTFLAGS: "-C link-dead-code"

View File

@ -202,6 +202,9 @@ mod tests {
} }
#[test] #[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() { fn test_cache_image() {
let url = "http://www.newrustacean.com/feed.xml"; let url = "http://www.newrustacean.com/feed.xml";

View File

@ -101,6 +101,9 @@ mod tests {
use super::*; use super::*;
#[test] #[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() { fn test_get_pixbuf_from_path() {
let url = "http://www.newrustacean.com/feed.xml"; let url = "http://www.newrustacean.com/feed.xml";