serial testing
This commit is contained in:
parent
89b56e6310
commit
b698a75fe9
@ -4,6 +4,7 @@ use std::{
|
||||
};
|
||||
|
||||
use chrono::NaiveTime;
|
||||
use serial_test::serial;
|
||||
use simplelog::*;
|
||||
|
||||
use ffplayout_lib::utils::{
|
||||
@ -13,6 +14,7 @@ use ffplayout_lib::utils::{
|
||||
};
|
||||
|
||||
#[test]
|
||||
#[serial]
|
||||
fn test_random_list() {
|
||||
let clip_list = vec![
|
||||
Media::new(0, "./assets/with_audio.mp4", true), // 30 seconds
|
||||
@ -29,6 +31,7 @@ fn test_random_list() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[serial]
|
||||
fn test_ordered_list() {
|
||||
let clip_list = vec![
|
||||
Media::new(0, "./assets/with_audio.mp4", true), // 30 seconds
|
||||
@ -51,6 +54,7 @@ fn test_ordered_list() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[serial]
|
||||
fn test_filler_list() {
|
||||
let mut config = PlayoutConfig::new(None);
|
||||
config.storage.filler = "assets/".into();
|
||||
@ -61,6 +65,7 @@ fn test_filler_list() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[serial]
|
||||
fn test_generate_playlist_from_folder() {
|
||||
let mut config = PlayoutConfig::new(None);
|
||||
config.general.generate = Some(vec!["2023-09-11".to_string()]);
|
||||
@ -94,6 +99,7 @@ fn test_generate_playlist_from_folder() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[serial]
|
||||
fn test_generate_playlist_from_template() {
|
||||
let mut config = PlayoutConfig::new(None);
|
||||
config.general.generate = Some(vec!["2023-09-12".to_string()]);
|
||||
|
Loading…
Reference in New Issue
Block a user