massive-oss / MassiveUnit

munit is a cross-platform unit testing framework for Haxe. Utilises metadata markup for test cases and includes tools for generating, compiling and running test cases from the command line.
Other
180 stars 56 forks source link

Some improvement for FlashDevelop :) 4 macroses for fast access to munit features #72

Open Dukobpa3 opened 10 years ago

Dukobpa3 commented 10 years ago

init munit for current project(can't captured to FD output because need user input) RunProcess|cmd.exe;/c cd $(ProjectDir) & haxelib run munit config

run all tests for current project (use FD output window) RunProcessCaptured|$(SystemDir)\cmd.exe;/c cd $(ProjectDir) & haxelib run munit test -browser flashdevelop

add testCase for current opened file (type) (use FD output window) RunProcessCaptured|$(SystemDir)\cmd.exe;/c cd $(ProjectDir) & haxelib run munit create -for $(TypPkgName)

run current opened TestCase (use FD output window) RunProcessCaptured|$(SystemDir)\cmd.exe;/c cd $(ProjectDir) & haxelib run munit gen -filter $(TypPkgName) & munit test -browser flashdevelop

You can put macroses to your toolbar, add hotkey, icon etc. I'm use it with hotkey.

elsassph commented 10 years ago

Nice - you may want to put quotes around the $(ProjectDir) in case it contains spaces.

Dukobpa3 commented 10 years ago

Neko run have some troubles with spaces, so I'm not sure it will help me:)