Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: SSH on Wed 28/02/2007 12:11:44

Title: SUGGESTION: Coverage debug log
Post by: SSH on Wed 28/02/2007 12:11:44
For people doing beta-testign of their game, it would be great if AGS had a debug mode which you could turn on that logged Statement coverage of your game to a file which each beta-tester could send to the developer, so a developer can know if every bit of code has been exercised. Ideally, also have decision coverage too, but that's probably harder...
Title: Re: SUGGESTION: Coverage debug log
Post by: Rui 'Trovatore' Pires on Wed 28/02/2007 12:15:35
I know it's hardly the same thing, but AGS does have a "record" feature that's hardly ever used. I second SSH's suggestion, but I think that first AGS' "record" feature should be properly documented.
Title: Re: SUGGESTION: Coverage debug log
Post by: SSH on Wed 28/02/2007 12:48:07
Well, I'm not sure it shoudl happen "first" as its probably not used because it is not useful. I'm trying to improve testing quality by providing metrics with this suggestion...
Title: Re: SUGGESTION: Coverage debug log
Post by: Pumaman on Wed 28/02/2007 20:33:33
Recording code coverage would probably require fairly significant changes to the script engine, but it's certainly an interesting suggestion for the long-term.
Title: Re: SUGGESTION: Coverage debug log
Post by: SSH on Thu 01/03/2007 20:13:22
Well, of course the easy way would be to make every line effectively annotated to have some code like Covered(LINE_NO, SCRIPT_NAME); if front of it... which if the new editor uses plain files for script would just require some kind of pre-compile preprocessing hook in the editor.
Title: Re: SUGGESTION: Coverage debug log
Post by: Pumaman on Thu 01/03/2007 20:41:04
Yes, but you then also need a way to present the results such that it's easy to see which lines were covered and which weren't...
Title: Re: SUGGESTION: Coverage debug log
Post by: SSH on Thu 01/03/2007 20:54:26
Well, that could be done externally by anyone who likes to create AGS add-ons ;)