11

I've been doing a lot of sproc programming in MySQL lately.
And I must say that I like it. A lot.

However debugging these babies sucks.
Anyone know of any tools that can put some happiness in My MySQL debugging?

Federico Razzoli
  • 4,901
  • 1
  • 19
  • 21
Johan
  • 74,508
  • 24
  • 191
  • 319
  • 1
    There is no happiness to be found in MySQL stored procedures. You are doing it wrong. I have a longer answer^Wrant for you on that, but it will be kind of offtopic to this question, so I won't bother you with it here. – Isotopp Apr 13 '11 at 00:15
  • @Isotop: Thanx for making me smile, finally some glimpse of joy outside of MySQL. – Johan Apr 13 '11 at 06:55
  • 1
    @KingCrunch MySQL stored procedural SQL. – Johan Apr 14 '11 at 07:29
  • Didnt know, there is a real SQL-unittest tool. My question was about in which language you want to write your tests (java, ...). I think I need a closer look at mydebugger :) – KingCrunch Apr 14 '11 at 07:31

4 Answers4

6

http://www.mydebugger.com/

There is a limited free version, but the full version is not too expensive either.

Here is screenshot:

enter image description here

joe_coolish
  • 7,201
  • 13
  • 64
  • 111
6

Have you considered using

https://github.com/hepabolu/mytap

For unit testing the db you should have something native that works in MySQL.

Paul Campbell
  • 1,906
  • 2
  • 12
  • 19
Roopesh Shenoy
  • 3,389
  • 1
  • 33
  • 50
2

For Unit Testing, you can try this: http://stk.wikidot.com/stk-unit

Federico Razzoli
  • 4,901
  • 1
  • 19
  • 21
0

If you pefer writing your test in C++ you can use googletest:

https://code.google.com/p/googletest/

You can find a good overview on the mySQL documentation webside:

http://dev.mysql.com/doc/mysqltest/2.0/en/unit-tests-google-test.html

janine
  • 11
  • 3