Skip to content

Commit

Permalink
Faster testing with reduced number of levels (#130)
Browse files Browse the repository at this point in the history
Ideally, we should be able to do tests with snapshot file sizes below
100Kbs. Before this I was getting stuck for tens of minutes on `aet04`
and I think we need this working faster and w/ lower memory footprint
(it is impossible otherwise to review differences between versions).
@zdz2101 can you help me track down if this is too much for the current
test coverage?

The following reductions have been done in this PR:
```
Reducing levels of adae_pharmaverse for variable AEDECOD: keeping 15 levels out of 242 levels. Total kept (%): 46.8
Reducing levels of adlb_pharmaverse for variable PARAM: keeping 10 levels out of 49 levels. Total kept (%): 24.1
```

Fixes #127

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Melkiades and github-actions[bot] authored Apr 9, 2024
1 parent 6d8ba27 commit 83fc384
Show file tree
Hide file tree
Showing 71 changed files with 3,266 additions and 21,571 deletions.
10 changes: 5 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ License: Apache License 2.0 | file LICENSE
URL: https://github.com/insightsengineering/scda.test/
BugReports: https://github.com/insightsengineering/scda.test/issues
Depends:
formatters (>= 0.5.5),
formatters (>= 0.5.5.9018),
R (>= 4.2),
rlistings (>= 0.2.7),
rtables (>= 0.6.6),
tern (>= 0.9.3)
rlistings (>= 0.2.7.9011),
rtables (>= 0.6.6.9011),
tern (>= 0.9.3.9028)
Imports:
pharmaverseadam (>= 0.2.0),
random.cdisc.data (>= 0.3.14.9006)
random.cdisc.data (>= 0.3.15.9001)
Suggests:
broom,
checkmate,
Expand Down
112 changes: 56 additions & 56 deletions tests/testthat/_snaps/listing_lbl01.md

Large diffs are not rendered by default.

112 changes: 56 additions & 56 deletions tests/testthat/_snaps/listing_lbl01_rls.md

Large diffs are not rendered by default.

100 changes: 50 additions & 50 deletions tests/testthat/_snaps/listing_lbl02a.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,56 +10,56 @@
Study Last Dose of Lab Normal CTCAE
Treatment Lab Test (Unit) Center/Patient ID Day Date Study Drug Result Range Grade
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
Placebo Alanine Aminotransferase (U/L) 701/1015 15 16JAN2014 0 41.0 6.0 - 34.0 H1
701/1234 100 07JUL2013 0 40.0 6.0 - 35.0 H1
704/1388 -9 28NOV2012 0 36.0 6.0 - 35.0 H1
704/1445 32 11JUN2014 0 44.0 6.0 - 35.0 H1
46 25JUN2014 14 43.0 6.0 - 35.0 H1
60 09JUL2014 14 48.0 6.0 - 35.0 H1
88 06AUG2014 28 42.0 6.0 - 35.0 H1
116 03SEP2014 28 48.0 6.0 - 35.0 H1
705/1186 -5 03JAN2014 0 50.0 6.0 - 32.0 H1
16 23JAN2014 21 104.0 6.0 - 32.0 H2
19 26JAN2014 3 95.0 6.0 - 32.0 H1
22 29JAN2014 3 107.0 6.0 - 32.0 H2
25 01FEB2014 3 92.0 6.0 - 32.0 H1
31 07FEB2014 6 73.0 6.0 - 32.0 H1
705/1349 26 04APR2013 0 39.0 6.0 - 32.0 H1
169 25AUG2013 143 33.0 6.0 - 32.0 H1
708/1286 167 23FEB2014 0 124.0 6.0 - 32.0 H2
709/1301 -12 07JUL2013 0 69.0 6.0 - 34.0 H1
-5 14JUL2013 7 55.0 6.0 - 34.0 H1
15 02AUG2013 20 56.0 6.0 - 34.0 H1
24 11AUG2013 9 45.0 6.0 - 34.0 H1
43 30AUG2013 19 42.0 6.0 - 34.0 H1
57 13SEP2013 14 63.0 6.0 - 34.0 H1
714/1035 -38 10MAR2014 0 37.0 6.0 - 32.0 H1
40 26MAY2014 78 37.0 6.0 - 32.0 H1
49 04JUN2014 9 36.0 6.0 - 32.0 H1
62 17JUN2014 13 35.0 6.0 - 32.0 H1
85 10JUL2014 23 35.0 6.0 - 32.0 H1
112 06AUG2014 27 36.0 6.0 - 32.0 H1
718/1150 42 01MAR2013 0 76.0 6.0 - 32.0 H1
58 17MAR2013 16 44.0 6.0 - 32.0 H1
84 12APR2013 26 64.0 6.0 - 32.0 H1
140 07JUN2013 56 48.0 6.0 - 32.0 H1
Albumin (g/dL) 701/1130 29 15MAR2014 0 33.0 35.0 - 46.0 L1
138 02JUL2014 109 34.0 35.0 - 46.0 L1
701/1415 141 10FEB2014 0 33.0 35.0 - 46.0 L1
703/1299 17 28SEP2012 0 34.0 35.0 - 46.0 L1
705/1186 -5 03JAN2014 0 34.0 35.0 - 46.0 L1
16 23JAN2014 21 32.0 35.0 - 46.0 L1
19 26JAN2014 3 30.0 35.0 - 46.0 L1
22 29JAN2014 3 32.0 35.0 - 46.0 L1
25 01FEB2014 3 31.0 35.0 - 46.0 L1
31 07FEB2014 6 32.0 35.0 - 46.0 L1
705/1349 -14 24FEB2013 0 32.0 35.0 - 46.0 L1
-7 03MAR2013 7 34.0 35.0 - 46.0 L1
15 24MAR2013 22 31.0 35.0 - 46.0 L1
26 04APR2013 11 29.0 35.0 - 46.0 L2
53 01MAY2013 27 28.0 35.0 - 46.0 L2
80 28MAY2013 27 28.0 35.0 - 46.0 L2
108 25JUN2013 28 33.0 35.0 - 46.0 L1
Placebo Alanine Aminotransferase (U/L) 701/1015 15 16JAN2014 0 41.0 6.0 - 34.0 H1
701/1234 100 07JUL2013 0 40.0 6.0 - 35.0 H1
704/1388 -9 28NOV2012 0 36.0 6.0 - 35.0 H1
704/1445 32 11JUN2014 0 44.0 6.0 - 35.0 H1
46 25JUN2014 14 43.0 6.0 - 35.0 H1
60 09JUL2014 14 48.0 6.0 - 35.0 H1
88 06AUG2014 28 42.0 6.0 - 35.0 H1
116 03SEP2014 28 48.0 6.0 - 35.0 H1
705/1186 -5 03JAN2014 0 50.0 6.0 - 32.0 H1
16 23JAN2014 21 104.0 6.0 - 32.0 H2
19 26JAN2014 3 95.0 6.0 - 32.0 H1
22 29JAN2014 3 107.0 6.0 - 32.0 H2
25 01FEB2014 3 92.0 6.0 - 32.0 H1
31 07FEB2014 6 73.0 6.0 - 32.0 H1
705/1349 26 04APR2013 0 39.0 6.0 - 32.0 H1
169 25AUG2013 143 33.0 6.0 - 32.0 H1
708/1286 167 23FEB2014 0 124.0 6.0 - 32.0 H2
709/1301 -12 07JUL2013 0 69.0 6.0 - 34.0 H1
-5 14JUL2013 7 55.0 6.0 - 34.0 H1
15 02AUG2013 20 56.0 6.0 - 34.0 H1
24 11AUG2013 9 45.0 6.0 - 34.0 H1
43 30AUG2013 19 42.0 6.0 - 34.0 H1
57 13SEP2013 14 63.0 6.0 - 34.0 H1
714/1035 -38 10MAR2014 0 37.0 6.0 - 32.0 H1
40 26MAY2014 78 37.0 6.0 - 32.0 H1
49 04JUN2014 9 36.0 6.0 - 32.0 H1
62 17JUN2014 13 35.0 6.0 - 32.0 H1
85 10JUL2014 23 35.0 6.0 - 32.0 H1
112 06AUG2014 27 36.0 6.0 - 32.0 H1
718/1150 42 01MAR2013 0 76.0 6.0 - 32.0 H1
58 17MAR2013 16 44.0 6.0 - 32.0 H1
84 12APR2013 26 64.0 6.0 - 32.0 H1
140 07JUN2013 56 48.0 6.0 - 32.0 H1
Albumin (g/dL) 701/1130 29 15MAR2014 0 33.0 35.0 - 46.0 L1
138 02JUL2014 109 34.0 35.0 - 46.0 L1
701/1415 141 10FEB2014 0 33.0 35.0 - 46.0 L1
703/1299 17 28SEP2012 0 34.0 35.0 - 46.0 L1
705/1186 -5 03JAN2014 0 34.0 35.0 - 46.0 L1
16 23JAN2014 21 32.0 35.0 - 46.0 L1
19 26JAN2014 3 30.0 35.0 - 46.0 L1
22 29JAN2014 3 32.0 35.0 - 46.0 L1
25 01FEB2014 3 31.0 35.0 - 46.0 L1
31 07FEB2014 6 32.0 35.0 - 46.0 L1
705/1349 -14 24FEB2013 0 32.0 35.0 - 46.0 L1
-7 03MAR2013 7 34.0 35.0 - 46.0 L1
15 24MAR2013 22 31.0 35.0 - 46.0 L1
26 04APR2013 11 29.0 35.0 - 46.0 L2
53 01MAY2013 27 28.0 35.0 - 46.0 L2
80 28MAY2013 27 28.0 35.0 - 46.0 L2
108 25JUN2013 28 33.0 35.0 - 46.0 L1
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
NCI CTCAE grade is displayed as abnormal high (H) or low (L) followed by the grade.
Expand Down
Loading

0 comments on commit 83fc384

Please sign in to comment.