Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/praem90/neotest-docker-phpunit
Run phpunit test case inside a docker container and copy the result to the host
https://github.com/praem90/neotest-docker-phpunit
Last synced: 3 months ago
JSON representation
Run phpunit test case inside a docker container and copy the result to the host
- Host: GitHub
- URL: https://github.com/praem90/neotest-docker-phpunit
- Owner: praem90
- Created: 2024-03-06T23:55:51.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T05:55:55.000Z (4 months ago)
- Last Synced: 2024-09-26T19:42:14.927Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHPUnit docker test
Run phpunit tests in the docker container. This is a helper lib for [ neotest-docker-phpunit ]( https://github.com/praem90/neotest-docker-phpunit.nvim ) but works standalone.## Installation
Install from source
```zsh
git clone https://github.com/praem90/neotest-docker-phpunit.git
cd neotest-docker-phpunit
cargo build
```Install from cargo
```zsh
cargo install neotest-docker-phpunit
```## Usage
```zsh
neotest-docker-phpunit /path/to/php/file/folder --log-junit=path/to/the/result.xml --container=php --volume="docker/style/:volume/map" --standalone=false
```## Args
- `--container` name or id of the phpunit container
- `--volume` Map work dir to the container like docker's volume mount. E.g., `host/path:docker/path`
- `--standalone` Whether use docker compose or not. Default `false` means `docker compose` will be used
- `--log-junit` Unit test results xml file. Unit test results will be stored in this file.## TODO
- [ ] Unit tests
- [ ] Improve STDOUT
- [x] Make the root_dir, container name and coompose as args
- [x] Create a `neotest-docker-phpunit` adapter for the `neotest` plugin