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

Functional testing #279

Closed
hugbug opened this Issue Sep 10, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@hugbug
Member

hugbug commented Sep 10, 2016

Currently we have a (rather) small collection of unit tests. To improve test coverage we'll develop a functional testing system for NZBGet. The purpose is to provide testing for high level program functions which means testing of many program components. This includes tests like:

  • add nzb-file to download queue, download it and check the result;
  • add nzb-file which requires par-repair and test how the program successfully downloads and repairs it;
  • download nzb from one set of servers; test how it fails; then retry failed articles on another set of serves;
  • etc.

One of the big problem here is how to make the test system self contained. The purpose of NZBGet is to download from Usenet servers. But to make functional testing possible we need to do all the testing locally. Therefore the first step will be to develop an NNTP server, which will be run locally and fast.

@hugbug hugbug added the meta label Sep 10, 2016

@hugbug hugbug added this to the v18 milestone Sep 10, 2016

hugbug added a commit that referenced this issue Sep 13, 2016

#279: built-in nntp server for functional testing
- implemented nserv - built-in simple nntp server to be used for
functional testing;
- nserv is part of nzbget executable and can be easily used on all
platforms;
- to start nzbget in nserv mode use command “nzbget —nserv”.

hugbug added a commit that referenced this issue Sep 13, 2016

#279: built-in nntp server for functional testing
- implemented nserv - built-in simple nntp server to be used for
functional testing;
- nserv is part of nzbget executable and can be easily used on all
platforms;
- to start nzbget in nserv mode use command “nzbget --nserv”.
@hugbug

This comment has been minimized.

Show comment
Hide comment
@hugbug
Member

hugbug commented Sep 14, 2016

hugbug added a commit that referenced this issue Sep 17, 2016

hugbug added a commit that referenced this issue Sep 17, 2016

@hugbug hugbug closed this Sep 17, 2016

hugbug added a commit that referenced this issue Sep 19, 2016

hugbug added a commit that referenced this issue Sep 19, 2016

#279: size of test files
can now be adjusted via pytest.ini; reduced default sizes to speed up
tests.

hugbug added a commit that referenced this issue Oct 9, 2017

#279: built-in nntp server for functional testing
- implemented nserv - built-in simple nntp server to be used for
functional testing;
- nserv is part of nzbget executable and can be easily used on all
platforms;
- to start nzbget in nserv mode use command “nzbget --nserv”.

hugbug added a commit that referenced this issue Oct 9, 2017

hugbug added a commit that referenced this issue Oct 9, 2017

hugbug added a commit that referenced this issue Oct 9, 2017

hugbug added a commit that referenced this issue Oct 9, 2017

#279: size of test files
can now be adjusted via pytest.ini; reduced default sizes to speed up
tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment