Skip to content
This repository has been archived by the owner on Jul 11, 2021. It is now read-only.

TODO: Test Cases #120

Open
NISH1001 opened this issue Jun 5, 2020 · 1 comment
Open

TODO: Test Cases #120

NISH1001 opened this issue Jun 5, 2020 · 1 comment

Comments

@NISH1001
Copy link
Owner

NISH1001 commented Jun 5, 2020

Just a todo thread for test cases. This has been bugging me for a while. We can't even do some functional testing because of highly superimposed components. I think integration testing can be done but have to figure out a way to do this properly.

Few tests we can do are:

  • crawl, and download songs (this can be done by temporarily downloading songs and deleting them)
  • can create a temporary test cache dir like ~/.playx-test where we could perform a few checks
  • Playlist checks can be functionally tested. We could try fetching list of song names.
@deepjyoti30
Copy link
Contributor

@NISH1001 That sounds great.

I think we can have like a dry run, in which case all the fetching and everything is done just that the songs are not played.

We can also add some fixed URL's for each parser that the parser will try to parse when we run the tests and we will get the results. For the time being it seems like that would be the easiest way to go?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants