-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev-Anleitung #1209
Dev-Anleitung #1209
Conversation
* Uses php7.4 * Configures plugin for dev env * And update Readme.md with development paragraph
Finde das mit wp-env grundsätzlich schon cool. Gibt es irgendwie ne Möglichkeit direkt phpunit in der richtigen Version mit in das enviroment zu übernehmen? Und zwei Anmerkungen:
Und vielleicht könnte man nochmal explizit schreiben, dass man docker für wp-env benötigt. Steht zwar auch in der Doku da drin aber schaden tut es nicht. |
Und für die Zukunft fände ich es auch mega, wenn man auf der Hauptseite einfach alle Shortcodes hätte und so jeweils ein Artikel, Standort und Timeframe da wäre. |
@hansmorb Was genau meinst du? Phpunit führst du ja lokal aus, also nicht im environment und du musst es vorher noch manuell runterladen.
Ich habe die Readme angepasst. Ich habe bisher keine Möglichkeit gefunden den DB-Port bei
Das sollte nicht passieren, vielleicht ist vorher was schief gelaufen? Versuche wp-env zurückzusetzen und von einem sauberen Stand aus zu starten.
Habe ich gemacht. |
Und @hansmorb was hälst du davon folgende Plugins noch mit in die wp-env.json zu nehmen? "plugins": [
".",
"https://downloads.wordpress.org/plugin/wp-crontrol.zip",
"https://downloads.wordpress.org/plugin/wordpress-importer.zip",
"https://downloads.wordpress.org/plugin/query-monitor.zip",
"https://downloads.wordpress.org/plugin/debug-bar.zip"
] Finde die echt hilreich und sind mir auch jetzt erst über den Weg gelaufen. |
Wie meinst du das? Nachdem man das Plugin zum ersten Mal installiert hat? |
Query monitor UND Debug bar finde ich redundant, die machen ja quasi beide das selbe. Wäre nur für query Monitor weil das auch Debug bar Plugins unterstützt |
@hansmorb Ok ist jetzt drin. Passt das jetzt? Hat es bei dir geklappt? Den Fehler von dir kann ich bei mir nicht wirklich nachstellen? Hast du mal ein wp-env destroy/kill gemacht? |
@datengraben Ja, leider immer noch. Auch nachdem ich das Kommando ausgeführt habe. |
Codecov Report
@@ Coverage Diff @@
## master #1209 +/- ##
============================================
+ Coverage 35.61% 35.79% +0.17%
- Complexity 2111 2112 +1
============================================
Files 83 83
Lines 8567 8577 +10
============================================
+ Hits 3051 3070 +19
+ Misses 5516 5507 -9
|
# Conflicts: # Readme.md # composer.json # composer.lock
Ich hab gerade versucht die Cypress Tests in den Tests ordner zu verschieben und die PHPUnit tests in einen Unterordner namens php bei tests zu verschieben, das hat leider nicht geklappt und ich weiss leider nicht genau wo ich was umstellen soll. Mein Vorbild hier ist ElasticPress https://github.com/10up/ElasticPress/blob/3470e520bbb217e59fea56c2b5647ce43fb42b5f/phpunit.xml.dist |
@datengraben Ich glaube wir müssen in Zukunft alle PRs von Branches vom wielebenwir Repo erstellen, sonst laufen die Tests nicht in der CI durch. EDIT: Oh, auf einmal geht's doch! |
# Conflicts: # package-lock.json
This reverts commit 4fa6171.
Mir immer noch ein Rätsel, warum der Unit Test der die Kartenseite im Backend geladen hat vorher funktioniert hat. |
cypress/e2e/load-shortcodes.cy.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hansmorb was meinst du mit "without creating a new instance"? Es läuft doch eine, wenn der Cypress Test ausgeführt wird.
@hansmorb ja werde ich aber trotzdem machen. Dann ist alles an einer Stelle. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | ||
command in the plugin directory. Make sure that all of your strings use the `__` function with the domain `commonsbooking`. Then you can use `poedit` to open the `commonsbooking-de_DE.po` and update the strings from the `pot` file. | ||
|
||
### Build plugin zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hansmorb Also diese Stelle stimmt jetzt nicht mehr, das bin/build-zip.sh ist irgendwie rausgeflogen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dann lass uns doch gerne zuerst die #1223 mergen und dann diesen Branch.
Noch unvollständig