ccextractor icon indicating copy to clipboard operation
ccextractor copied to clipboard

[PROPOSAL] Add some Unit Test for CCExtractor

Open FlyingTwigs opened this issue 6 years ago • 5 comments

Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION].

CCExtractor version (using the --version parameter preferably) : X.X

In raising this issue, I confirm the following (please check boxes, eg [X]):

  • [x] I have read and understood the contributors guide.
  • [x] I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • [x] I have checked that the issue I'm posting isn't already reported.
  • [x] I have checked that the issue I'm porting isn't already solved and no duplicates exist in closed issues and in opened issues
  • [x] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
  • [x] I have used the latest available version of CCExtractor to verify this issue exists.

My familiarity with the project is as follows (check one, eg [X]):

  • [ ] I have never used CCExtractor.
  • [x] I have used CCExtractor just a couple of times.
  • [ ] I absolutely love CCExtractor, but have not contributed previously.
  • [ ] I am an active contributor to CCExtractor.

Necessary information

  • Is this a regression (did it work before)? [ ] NO | [ ] YES - please specify the last known working version
  • What platform did you use? [ ] Windows - [ ] Linux - [ ] Mac
  • What where the used arguments? -autoprogram

Video links

Please make the affected input file available for us (no screenshots, those don't help!). Public links to Dropbox, Google Drive, etc, are all fine. If it is not possible to make it available publicly, send us a private invitation (both Dropbox and Google Drive allow that). In this case we will download the file and upload it to the private developer repository.

Do not upload your file to any location that will require us to sign up or endure a wait list, slow downloads, etc. If your upload expires make sure you keep it active somehow (replace links if needed). Keep in mind that while we go over all tickets some may take a few days, and it's important we have the file available when we actually need it.

Additional information We need to add some unit test to CCExtractor to make sure things run properly (as the latest unit test commit is a year ago)

PS: Make sure you set an alert in GitHub so you get notifications about your ticket. We may need to ask questions and we do everything inside GitHub's system.

FlyingTwigs avatar Jan 22 '18 11:01 FlyingTwigs

This is part of the ccx_testsuite where it's purpose is to Test CCExtractor. There is already an issue there for writing unit tests.

https://github.com/CCExtractor/ccx_testsuite/issues/7

MatejMecka avatar Jan 22 '18 15:01 MatejMecka

I think that issue is to write unit tests for ccx_testsuite, instead of CCExtractor.

harrynull avatar Jan 22 '18 23:01 harrynull

Just to be clear:

  • There is an issue open to add unit tests to the Test Suite
  • There is an issue open to add unit tests to the Sample Platform
  • There's no issue open to add unit tests for CCExtractor.

However, if tests can be added for CCExtractor, why not?

canihavesomecoffee avatar Jan 23 '18 13:01 canihavesomecoffee

@canihavesomecoffee don't we have CI tests of CCExtractor for pull requests already, so what will make unit tests different from that?

prateekmedia avatar Mar 16 '23 17:03 prateekmedia

@canihavesomecoffee don't we have CI tests of CCExtractor for pull requests already, so what will make unit tests different from that?

Those are integration tests - end to end. But they don't really test individual parts of the code, so when a commit break something all we know from the CI is that something broke :-)

I don't know however how unit tests would work for us, with the huge amount of spaguetti code we've accumulated over the years.

I think we should try to have unit tests for Rust code as we port/rewrite, but I wouldn't bother with the C code.

cfsmp3 avatar Mar 22 '23 05:03 cfsmp3