Gianfrancoalongi / APLUnit

APLUnit - a library to facilitate Unit Testing and Test Driven Development of code written in Dyalog APL, developed together with Morten Kromberg (CTO Dyalog Ltd)
7 stars 5 forks source link

Crash when using coverage #7

Closed Gianfrancoalongi closed 11 years ago

Gianfrancoalongi commented 11 years ago

For the APL Timebooking project - there seems to be a problem when activating coverage

C ← ⎕NEW #.UT.UTcover
C.pages ← '/tmp/'
C.cover ← ⊂ '#.Booking.indices_of_slots_with_all_musts_and_maximizing_could' C #.UT.run '/home/gianfranco/APL/apl-timebooking/booking_tests.dyalog'

/home/gianfranco/APL/apl-timebooking/booking_tests.dyalog tests
⍋ Passed: 19 ⍟ Crashed: 0 ⍒ Failed: 0
inactive CPU 8.413408858E¯14 8.413408858E¯14
DOMAIN ERROR: Argument must be a symbol name
generate_coverage_page[2] CoverResults←{ProfileData generate_cover_result ⍵(⎕CR ⍵)}¨CoverConf.Cover ^

Gianfrancoalongi commented 11 years ago

Not a bug, just poor usage (memory). All the fields of the Cover Conf are with capital letters!