https://github.com/yoyosan/sublime-phpunit
Sublime PHPUnit plugin version for Windows and Linux.
https://github.com/yoyosan/sublime-phpunit
linux phpunit sublime-text-3 testing-tools windows
Last synced: 2 months ago
JSON representation
Sublime PHPUnit plugin version for Windows and Linux.
- Host: GitHub
- URL: https://github.com/yoyosan/sublime-phpunit
- Owner: yoyosan
- Created: 2017-05-26T09:34:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-04T20:56:14.000Z (over 7 years ago)
- Last Synced: 2025-02-23T11:35:57.527Z (2 months ago)
- Topics: linux, phpunit, sublime-text-3, testing-tools, windows
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Sublime PHPUnit
Convenient Sublime Text commands for running your PHPUnit tests. Scans up the directory tree to find the closest
phpunit.xml file and runs phpunit from there. If it can't find one, it just runs phpunit from `/`.## Installation
For now, you can run this on **Windows 10** and **Linux**. You should be able to run it on Windows 7/8 though I didn't
test on those versions.### Windows
```
git clone [email protected]:yoyosan/sublime-phpunit.git 'C:\Users\\AppData\Roaming\Sublime Text 3/Packages'
```Note that, by default, this package uses Window's `cmd.exe` application due to how `os.system` works in Python 3, for Windows. Read
[here](https://docs.python.org/3/library/os.html#os.system) to find out more.Therefore, there **won't be any colouring** of the output :(
### Linux
```
$ git clone [email protected]:yoyosan/sublime-phpunit.git /home/`whoami`/.config/sublime-text-3/Packages
# install terminator package
# Fedora
$ sudo dnf install terminator -y
# Ubuntu
$ sudo apt-get install terminator -y
```Re/start Sublime.
### Shortcuts
You can find the commands in the command palette under "Sublime PHPUnit", or map any of these commands to whatever
shortcuts you want:```
run_phpunit_test
run_phpunit_tests_in_dir
run_single_phpunit_test
run_all_phpunit_tests
```## Future plans
- [X] Support for Linux.
- [X] Refactor code a bit.
- [X] Add support for running tests with a data provider.## Credits
[Implemention](https://github.com/adamwathan/sublime-phpunit) for MacOS by Adam Wathan.