Add integration tests to CI #82

Merged
wojtek merged 4 commits from 81---add-integration-tests-to-ci into main 2024-01-06 16:14:08 +01:00
8 changed files with 38 additions and 2 deletions
Showing only changes of commit 2094fbb41c - Show all commits

View File

@ -8,6 +8,7 @@ on:
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
BEETSDIR: ./
jobs: jobs:
build_and_test: build_and_test:

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/target /target
/codecov /codecov
database.json database.json
library.db

View File

@ -1 +0,0 @@
library

File diff suppressed because one or more lines are too long

2
tests/files/library/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
music
state.pickle

View File

@ -0,0 +1,15 @@
directory: tests/files/library/music
library: tests/files/library/library.db
import:
copy: no
move: no
write: no
autotag: no
plugins: info
paths:
default: $albumartist/$year $album%aunique{}/$track $title
singleton: $artist/Non-Album/$year $title
comp: Compilations/$year $album%aunique{}/$track $title

Binary file not shown.

View File

@ -402,6 +402,24 @@ pub static COLLECTION: Lazy<Vec<Artist>> = Lazy::new(|| -> Collection {
).unwrap()), ).unwrap()),
}, },
albums: vec![Album { albums: vec![Album {
id: AlbumId {
year: 2011,
title: String::from("Paper Plague"),
},
tracks: vec![
Track {
id: TrackId {
number: 0,
title: String::from("Paper Plague"),
},
artist: vec![String::from("Heavens Basement")],
quality: Quality {
format: Format::Mp3,
bitrate: 320,
},
},
],
}, Album {
id: AlbumId { id: AlbumId {
year: 2011, year: 2011,
title: String::from("Unbreakable"), title: String::from("Unbreakable"),