Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define some test cases for library scanning #9

Open
9 of 11 tasks
hatzel opened this issue Oct 12, 2017 · 0 comments
Open
9 of 11 tasks

Define some test cases for library scanning #9

hatzel opened this issue Oct 12, 2017 · 0 comments

Comments

@hatzel
Copy link
Member

hatzel commented Oct 12, 2017

We are in the process of building an integration test suite library migrations (testing the process of a user changing files between scans of the filesystem).
We will just define some test cases in natural language in this issue and check them off as the test is implemented.

  • Recover from deletion: the first state has a book, second doesn't, it's back in the third state
  • Book get's renamed
  • Work with moved audiobooks:
    • In the first state the book is called 'lol', in the second it is called 'rofl', file contents are the same
    • In the first state the book is called 'lol', in the second it is called 'rofl', file contents are the same but there is a new book also called 'lol'
      • The hash should probably get precedence
  • Book with same name has different file contents
  • Book get's deleted, shows up with different content again
    • What should even happen here if we see a book with the same name but different hash? I think that when in doubt we should keep the playstates. Manually starting playback from 0 isn't exactly hard to do, but finding the time code you last listened at could be really annoying.
  • Multifile book is updated.
    • Make sure it's remuxed
  • Multifile audiobook gets new file
  • Make sure it's remuxed again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant