Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 7 years ago

Last modified 5 years ago

#4442 closed enhancement (duplicate)

Automated Unit Testing for BuddyPress

Reported by: foxly Owned by: foxly
Milestone: BuddyPress.org Sites Priority: normal
Severity: major Version:
Component: Build/Test Tools 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 8 years ago.

Download all attachments as: .zip

Change History (14)

#1 @foxly
8 years ago

  • Owner set to foxly
  • Status changed from new to assigned

#3 @johnjamesjacoby
8 years ago

  • Component changed from Core to Unit Tests
  • Milestone changed from Awaiting Review to Unit Tests

#4 @johnjamesjacoby
8 years ago

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

#5 @fanquake
8 years ago

  • Cc fanquake@… added

#6 @foxly
8 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
8 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
8 years ago

#8 @2inov8
8 years ago

  • Cc 2inov8 added

#9 @chrisclayton
7 years ago

  • Keywords needs-patch added; needs-testing removed

Related to #3567

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

#10 @chrisclayton
7 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 7 years ago by chrisclayton (previous) (diff)

#11 @fanquake
7 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
7 years ago

  • Resolution set to duplicate
  • Status changed from assigned to closed

Closing in favor of #4889.

#13 @johnjamesjacoby
5 years ago

  • Milestone changed from Unit Tests to BuddyPress.org
Note: See TracTickets for help on using tickets.