[wp-trac] [WordPress Trac] #34693: Add browser-based testing and automated acceptance tests (BrowserStack)

WordPress Trac noreply at wordpress.org
Sun Dec 6 20:02:58 UTC 2015


#34693: Add browser-based testing and automated acceptance tests (BrowserStack)
------------------------------+-----------------------------
 Reporter:  westonruter       |       Owner:  jonathanbardo
     Type:  enhancement       |      Status:  assigned
 Priority:  normal            |   Milestone:  Future Release
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:
------------------------------+-----------------------------

Comment (by jonathanbardo):

 On way we can easily add acceptance testing using BrowserStack is to use a
 wp-cli helper plugin by 10up [https://github.com/10up/wp-codeception].

 For VVV testing we need to install Java & the actual plugin (which enables
 wp-cli commands):

 [https://github.com/10up/wp-codeception#install-required-node-modules-and-
 composer-dependencies]

 To be able to test this locally, we would need an account and an api key
 from BrowserStack (replace value in
 /tests/codeception/acceptance.suite.yml [we need a better way to override
 those]) and we also need the local tunel binaries found here:
 [https://www.browserstack.com/local-testing#command-line]

 Here is a video of the output of the following command:
 {{{
 #!bash
 wp codeception run --debug --env=chrome
 }}}


 https://cldup.com/j6NWUyppF5.mp4

 We would have to do some modifications on how travis downloads, install
 and run the tests. We might also want to limit how much of those tests are
 run everytime since it takes a fair amount of time. I think @jorbin is the
 right person to help with this.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34693#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list