SRL Archive - Development

Simba - testing framework.


Wizzup?

2012-03-30 20:00:53

So I was thinking it would be pretty neat to have an actual testing framework for Simba. Basically it should be simple to find out if a specific feature fails (this would make bisecting a lot easier too)

We'd want to test:

  • Colour conversions.
  • Different colour tolerances.
  • Colour finding.
  • Bitmap finding.
  • DTM finding.
  • Base64Decode / Encode (just because it screwed me over last time).
  • OCR (Probably just: create bitmap with text, read the text, something like that).

And we'd ship a bitmap or two with the tests. Tests should be written in Lape (not pascalscript)

I imagine that other features such as input and http stuff are a bit harder to test. File support tests could be optional, but I don't think they are required as file operations are very trivial. Another thing we could debug is the huge (and slightly arcane) tpa library in Simba, but I think that's again for another time.

Last but not least, I think it would be useful if it could be run from the command line, but that doesn't really concern the tests.

Any suggestions/comments/input on how to properly do this? The big issue is having something to compare it to, I think.

LordJashin

2012-03-30 20:59:45

From: Wizzup?
So I was thinking it would be pretty neat to have an actual testing framework for Simba. Basically it should be simple to find out if a specific feature fails (this would make bisecting a lot easier too)

We'd want to test:

  • Colour conversions.
  • Different colour tolerances.
  • Colour finding.
  • Bitmap finding.
  • DTM finding.
  • Base64Decode / Encode (just because it screwed me over last time).
  • OCR (Probably just: create bitmap with text, read the text, something like that).

And we'd ship a bitmap or two with the tests. Tests should be written in Lape (not pascalscript)

I imagine that other features such as input and http stuff are a bit harder to test. File support tests could be optional, but I don't think they are required as file operations are very trivial. Another thing we could debug is the huge (and slightly arcane) tpa library in Simba, but I think that's again for another time.

Last but not least, I think it would be useful if it could be run from the command line, but that doesn't really concern the tests.

Any suggestions/comments/input on how to properly do this? The big issue is having something to compare it to, I think.


Port TSpeedButton, TTreeList, TListView to Simba :spongebob: test SQL? lols

Edit: Maybe store stuff in a database, testing results etc.