Best tool for unit testing in MySQL [closed]
Asked Answered
B

4

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?

Bicker answered 12/4, 2011 at 22:31 Comment(4)
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.Roy
@Isotop: Thanx for making me smile, finally some glimpse of joy outside of MySQL.Bicker
@KingCrunch MySQL stored procedural SQL.Bicker
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 :)Oeflein
T
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

Thorma answered 12/4, 2011 at 22:35 Comment(1)
Hmm stepping through code sure sounds sweet.Bicker
J
6

Have you considered using

https://github.com/hepabolu/mytap

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

Jerriejerrilee answered 30/4, 2011 at 8:5 Comment(0)
T
2

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

Townsman answered 24/4, 2013 at 16:19 Comment(0)
H
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

Hovis answered 11/2, 2015 at 15:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.