Unit testing Haxe when targeting PHP

55 views
Skip to first unread message

K1978

unread,
Feb 7, 2015, 9:43:34 AM2/7/15
to haxe...@googlegroups.com
Hi!

I will use Haxe and the PHP target to develop a blog system. I would like to write it using TDD. Naturally I will use a database. How can it be done?


Cambiata

unread,
Feb 7, 2015, 12:38:02 PM2/7/15
to haxe...@googlegroups.com
You can use Haxe's standard unit testing classes for that: http://api.haxe.org/haxe/unit/index.html
Here's a simplistic example: http://try.haxe.org/#B5224

UTest (https://github.com/fponticelli/utest) and MUnit (https://github.com/massiveinteractive/MassiveUnit) are other popular alternatives.
You could also go the BDD route with something like Buddy (https://github.com/ciscoheat/buddy)

/ Jonas

Nicolas Juneau

unread,
Feb 8, 2015, 5:28:29 PM2/8/15
to haxe...@googlegroups.com
It can be achieved in many ways, Cambiata mentioned the standard Haxe
unit testing module. You could write your tests and run them using PHP
in the command line instead of the browser during development. As for
the database, it really depends on your development environment.

K1978 a écrit :
> --
> To post to this group haxe...@googlegroups.com
> http://groups.google.com/group/haxelang?hl=en
> ---
> You received this message because you are subscribed to the Google
> Groups "Haxe" group.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages