Using wp_mocks together with WordPress core Unit tests
@ericmann ci sta già lavorando.
Dal 27/5/2017.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
I know that wp_mock and WordPress core Unit tests work differently and it may not even be possible to have them run together.
I use both and like both. But there are certain tests for which I would prefer wp_mock and certain tests for which I would prefer WordPress core Unit tests. But unfortunately right now there is no way to configure both of them for a single plugin. You have to pick one and stick with it even if you can group all the 'mock' tests using a separate testsuite or phpunit group and invoke the separately from phpunit.
What I am suggesting is to have a way to setup both of them together for a plugin and invoke the appropriate framework and their tests using either phpunit's group or testsuite feature.
I know that there was some recent discussion about it and I am interested in knowing everyone's thoughts on it.
- Lingua principale
- PHP
- Stelle
- 714
- Fork
- 72
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di 10up/wp_mock
-
`expectActionAdded( array( Functions::type( class-string ), 'method' ) )` fails when same method name used twiceForse già presa @faisalahammad l’ha presa 126 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
-
PHPCS reporting error on dependent library nikic/php-parser, hamcrest/hamcrest-phpForse già presa @faisalahammad l’ha presa 126 giorni fa. ApertaDependencies
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Request: control Strict Mode per testForse già presa @BrianHenryIE l’ha presa 311 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Pass in Closure for HooksForse già presa @faisalahammad l’ha presa 126 giorni fa. ApertaEnhancement Question
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
-
Dependencies PHPUnit
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
Tutte le issue di 10up/wp_mock
Issue simili
-
wpvc
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
10up/autoshare-for-twitter#438 ·
-
wpvc
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
10up/Ad-Refresh-Control#240 ·
-
wpvc
Difficoltà 1/5 1-3 ore Idoneità per principianti 62/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Backend bug severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
RunningJoke/allipunkte#74 ·