Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 13 years ago

Last modified 11 years ago

#4442 closed enhancement (duplicate)

Automated Unit Testing for BuddyPress

Reported by: foxly Owned by: foxly
Priority: normal Milestone: BuddyPress.org Sites
Component: Build/Test Tools Version:
Severity: major Keywords: dev-feedback has-patch
Cc: fanquake@…, carlroett@…, 2inov8

Description

Merge BP-Media's unit testing framework into the Buddypress core. Create online documentation. Write a simple unit test to demonstrate operation to BP development team.

Attachments (1)

screencap.jpg (217.5 KB ) - added by foxly 14 years ago.

Download all attachments as: .zip

Change History (14)

#1 @foxly
14 years ago

  • Owner set to foxly
  • Status newassigned

#3 @johnjamesjacoby
14 years ago

  • Component CoreUnit Tests
  • Milestone Awaiting ReviewUnit Tests

#4 @johnjamesjacoby
14 years ago

Created "Unit Tests" milestone and component; we can look into creating more specific ones as we go.

#5 @fanquake
14 years ago

  • Cc fanquake@… added

#6 @foxly
14 years ago

  • Cc carlroett@… added

The build is underway.
http://code.google.com/p/buddypress-media/source/detail?r=2450

We've decided to encapsulate it in a plugin so everyone's install auto-synchs with the release-to-production version.

As this is a joint project between our teams, we'll be giving Boone commit access on our staging server and the plugin's Wordpress repo so that your team can make changes without having to go through us.

All dev activities for the unit test system will be coordinated through your TRAC, because everyone's on here and it works better than our bug tracker.

ETA: 2-3 days.

-F

#7 @foxly
14 years ago

  • Keywords dev-feedback needs-testing added

We're happy to present the first cut of the Buddypress unit tests !

1) Check out the Razor unit test platform from this SVN:

https://wp-razor.googlecode.com/svn/trunk/

and drop it into a folder called /razor/ in your WP plugins folder.

2) Check out the BP unit test stack from this SVN:

https://wp-razor.googlecode.com/svn/bp-tests/

and place the 'unit-test' folder inside the /buddypress/ folder

3) In a terminal window, navigate to /plugins/razor/ and type "php test.php --plugin=buddypress --panel=A"

You should get output similar to what's shown in the attached screen capture.

It's going to be a few more days before we have some substantial tests built for you, but the 'hello world' test fixture we've included should be enough for you to test whatever you're working on if you need to do it right away.

-F

@foxly
14 years ago

#8 @2inov8
14 years ago

  • Cc 2inov8 added

#9 @chrisclayton
13 years ago

  • Keywords needs-patch added; needs-testing removed

Related to #3567

Last edited 13 years ago by chrisclayton (previous) (diff)

#10 @chrisclayton
13 years ago

  • Keywords has-patch added; needs-patch removed

Oops, the wordpress-razor link still exists.

Will download it later and add it as an attachment to future proof it, as the first link posted (​http://code.google.com/p/buddypress-media/source/detail?r=2450) no longer exists.

Last edited 13 years ago by chrisclayton (previous) (diff)

#11 @fanquake
13 years ago

The reason that we didn't upload anything to trac is written here -> http://buddypress.trac.wordpress.org/ticket/3567#comment:1

There was and may still be a 256kb upload limit.

The Razor project is now hosted on Github -> https://github.com/WP-Razor/

#12 @boonebgorges
13 years ago

  • Resolutionduplicate
  • Status assignedclosed

Closing in favor of #4889.

#13 @johnjamesjacoby
11 years ago

  • Milestone Unit TestsBuddyPress.org
Note: See TracTickets for help on using tickets.