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

Add initial testing suit #53

Merged
merged 5 commits into from
Apr 3, 2021
Merged

Conversation

Syer10
Copy link
Collaborator

@Syer10 Syer10 commented Apr 3, 2021

  1. It goes over all sources, installs/updates/uninstalls extensions when it first starts up
  2. Queries popular manga for each source(a total of 3 times if it errors)
  3. Takes the first manga and queries manga info(a total of 3 times if it errors)
  4. Takes the manga and queries for chapters(a total of 3 times if it errors)
  5. And then lastly queries for the page list(a total of 3 times if it errors)

Additional changes:

  • It changes SourceDataClass.id to a long value(because it should be one, shouldnt have to convert it every use)
  • Implement coroutine testing suit
  • Reorginize applicationSetup function so that it allows us to change the root dir
  • Instead of using GlobalConfigManager use KodeinDI for ServerConfig, allows for easy swapping for tests

Notes: It creates files based on the tests results, so you can see what sources/manga info/chapters/page lists, failed to get

@AriaMoradi AriaMoradi merged commit 975a3b1 into Suwayomi:master Apr 3, 2021
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

Successfully merging this pull request may close these issues.

2 participants