[theme-reviewers] Theme Unit Tests on GitHub?
emil at uzelac.me
Thu Oct 16 17:23:55 UTC 2014
Awesome and thanks. So guys should we push over to TRT GH or?
On Thursday, October 16, 2014, Lance Willett <nanobar at gmail.com> wrote:
> Here's the checklist for preparing a new XML file, next time you need to
> do it.
> Often when I get the new XML file from
> http://wpthemetestdata.wordpress.com/ it needs a bit of massaging
> before commit to our pub repo.
> Here’s the process
> 1. WPTRT admins make changes to the test site on WP.com.
> 2. Go to http://wpthemetestdata.wordpress.com/ and export the full XML
> file, and open it locally in a text editor.
> 3. Clean it up.
> 4. Diff it with the previous version to be sure of no weird changes or
> additions, other than the expected ones.
> 5. Push to GitHub.
> 6. Go to http://codex.wordpress.org/Theme_Unit_Test, edit the page,
> change the UTC timestamp to “now” to show the most current update
> timestamp. **You can stop doing this probably since GitHub will have a
> history going forward.**
> Notes for the XML clean up, step 3.
> Remove the following metadata elements that are specific to WP.com.
> I look for these patterns using a text editor like TextMate or Sublime
> Text, with regex search turned on:
> 1. https://gist.github.com/lancewillett/a7c849026e2e403399a0
> 2. https://gist.github.com/lancewillett/127085c444ec6ff398d1
> Then search/replace with an empty string to remove from the XML file.
> It's not end of the world if they make it into the Unit Test XML file,
> but it's just clutter.
> – Lance
> On Thu, Oct 16, 2014 at 11:15 AM, Lance Willett <nanobar at gmail.com
> > The history of the file changes is public, it's part of our WP.com
> > public themes SVN repo.
> > You can see the history by doing something like:
> > svn log
> > I'm totally happy for the file to move to GitHub. If WPTRT has an
> > account and you'd like to maintain it going forward—please just grab
> > the latest copy and start from there; I don't need to do anything
> > further.
> > Then edit the Codex page at http://codex.wordpress.org/Theme_Unit_Test
> > to point to the GitHub repo instead of the SVN repo.
> > Done. :)
> > – Lance
> theme-reviewers mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers