Ed Lee created a new topic ' Problems with unit tests' in the forum. 2 years ago

Hi, I'm just setting up a dev environment to try some things with KStars and I've hit a couple of issues with the unit tests on a clean build:

  1. Some unit tests eg. TestPlaceholderPath, TestPolarAlign failed to find the test data files - I had to link these to files in the build/bin directory:
    9filters.esq -> ../Tests/scheduler/9filters.esq
    ngc4535-autofocus1.fits -> ../Tests/polaralign/ngc4535-autofocus1.fits
    ngc4535-autofocus2.fits -> ../Tests/fitsviewer/ngc4535-autofocus2.fits
    ngc4535-autofocus3.fits -> ../Tests/fitsviewer/ngc4535-autofocus3.fits
    testFlexibleNamingChangeBehavior_data_small.csv -> ../Tests/capture/testFlexibleNamingChangeBehavior_data_small.csv
    testFlexibleNaming_data_small.csv -> ../Tests/capture/testFlexibleNaming_data_small.csv
    testFullNamingSequence_data_small.csv -> ../Tests/capture/testFullNamingSequence_data_small.csv
    testSchedulerProcessJobInfo_data.csv -> ../Tests/capture/testSchedulerProcessJobInfo_data.csv
  2. Test TestFitsData::testComputeHFR (NGC4535-3-NORMAL) fails. It finds 29 stars instead of the expected 30.
Are these bugs in the tests or have I messed up somewhere?
I'd like to have a clean reference before I start digging into the code.
Thanks
Ed

Read More...