BotFarm icon indicating copy to clipboard operation
BotFarm copied to clipboard

Unit test - PoC

Open jackpoz opened this issue 10 years ago • 5 comments

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

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/19166212-unit-test-poc?utm_campaign=plugin&utm_content=tracker%2F457221&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F457221&utm_medium=issues&utm_source=github).

jackpoz avatar May 31 '15 15:05 jackpoz

I wonder if it is possible to quickly implement a DSL to do these kind of tests easily

DDuarte avatar May 31 '15 16:05 DDuarte

DSL?

Kittnz avatar Jun 01 '15 07:06 Kittnz

domain specific language http://en.wikipedia.org/wiki/Domain-specific_language

dufernst avatar Jun 01 '15 13:06 dufernst

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"

jackpoz avatar Jul 10 '15 20:07 jackpoz

about DSL http://storyboarddesigner.codeplex.com/ looks interesting, or the more recent https://www.visualstudio.com/en-us/integrate/explore/explore-vside-vsi.aspx

jackpoz avatar Jun 07 '16 14:06 jackpoz