Open jensdietrich opened 1 month ago
@jensdietrich please confirm
@nkiru-ede unitTest/unittest.py
still does not really test the scripts -- only the output. It calls process_maven_data
which reads the already processed data. So this merely tests that it can read these data.
Write tests as follows:
aggregate2GA
(aggregate2G
) or similar (dataanalysis.py
is not a good name as this is too general, write a simple testable script for each script). test_aggregate2GA
(test_aggregate2G
, respectively)test/data/GAV.zip
), calls aggregate2GA
(aggregate2G
) and then tests against the output of those scripts@jensdietrich this is now fixed. please review.
@nkiru-ede I just had a look at test_aggregate_g.py
-- two issues:
done @jensdietrich
I just had a look at
unitTest/unittest.py
. This script contains tests (tests look good but perhaps expand to have a few more rows and test all columns), but it also contains a functionfilter_and_calculate
.I think this is the actual classification code we use, so this is the code being tested, and should be kept separate from the actual test. Perhaps a function
aggregate2GA
(and then a similaraggregate2G
). in a separate module in a separate folder.