stuartherbert / sublime-phpunit

PHPUnit Support for Sublime Text 2
https://github.com/stuartherbert/sublime-phpunit
Other
103 stars 20 forks source link

ST3 Error: Run All Unit Tests... : __init__() missing 1 required positional argument: 'edit' #40

Closed trickleup closed 10 years ago

trickleup commented 10 years ago

When I run "Run All Unit Tests..." from the context menu I get the following error (both from phpunit.xml and from a .php file somewhere in the tree):

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 549, in run_
    return self.run(edit)
  File "/Users/XXXXX/Library/Application Support/Sublime Text 3/Packages/sublime-phpunit-feature-st3-support/phpunit.py", line 956, in run
    cmd = PhpunitCommand(self.view.window())
TypeError: __init__() missing 1 required positional argument: 'edit'

Is there any known workaround for this? Any help is appreciated.

Individual tests work fine. Also, acc. to the console the plugin does find phpunit.xml, so that does not seem to be the problem.

Thanks for a great plugin.

stuartherbert commented 10 years ago

I've just pushed a fix for this to the ST3 branch. Could you let me know if it fixes the issue for you?

trickleup commented 10 years ago

Was going to test this but wasn't able to find the ST3 branch? There's only master and develop? The branch I was using was sublime-phpunit-feature-st3-support. Apologies for my confusion - i zip-downloaded the branch for some reason - I thought from this repo - so I can't just pull it now.

trickleup commented 10 years ago

Gotcha, it's in develop. I'll test it and get back shortly!

trickleup commented 10 years ago

Tested on develop, works great, thank you!