BotFarm
BotFarm copied to clipboard
Unit test - PoC
Create a unit test for https://github.com/TrinityCore/TrinityCore/issues/14817 issue:
- [ ] create a warlock
- [ ] level to 80
- [ ] learn Corruption rank 1 to 10
- [ ] cast Corruption on a training dummy, save damage done by each tick
- [ ] learn Improved Corruption rank 5
- [ ] cast Corruption on a training dummy, verify that damage done improved by the amount specified by Improved Corruption
This could be generilized for all "spell/talent improving spell" pairs
I wonder if it is possible to quickly implement a DSL to do these kind of tests easily
DSL?
domain specific language http://en.wikipedia.org/wiki/Domain-specific_language
https://github.com/jackpoz/BotFarm/commit/653ff5c04651e9fd35047e1ec6976d0c747eef85 is supposed to help writing unit tests, like "wait for ingame opcode, select a target, cast a spell, expect dmg log opcode to have a particular dmg type and value"
about DSL http://storyboarddesigner.codeplex.com/ looks interesting, or the more recent https://www.visualstudio.com/en-us/integrate/explore/explore-vside-vsi.aspx