Skip to:
Content

BuddyPress.org

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#5200 closed enhancement (fixed)

Integrate with new core SVN-develop PHPUnit Setup

Reported by: ericlewis's profile ericlewis Owned by: boonebgorges's profile boonebgorges
Milestone: 1.9 Priority: normal
Severity: normal Version: 1.8.1
Component: Core Keywords: has-patch
Cc:

Description

The new WordPress SVN-develop setup now includes phpunit within the repository. This means for our development environment, we could use just this single repo, along with a BuddyPress svn repo checked out within the plugins folder, and integrate the two.

There's some assumptions made within the current tests setup code that don't allow us to do this easily though. Let's fix that.

Attachments (2)

5200.diff (2.8 KB) - added by ericlewis 11 years ago.
5200.1.diff (3.0 KB) - added by ericlewis 11 years ago.

Download all attachments as: .zip

Change History (8)

@ericlewis
11 years ago

#1 @ericlewis
11 years ago

attachment:5200.diff offers support for using the new develop svn environment single-handedly, while also providing backwards compatibility for users referencing an explicit location for the WP PHP unit folder location.

#2 @boonebgorges
11 years ago

  • Milestone changed from Awaiting Review to 1.9

Teh hotness

#3 @boonebgorges
11 years ago

One thing - could you make it so that things die more gracefully if both attempts at setting WP_TESTS_DIR fail? In other words, file_exists( WP_TESTS_CONFIG_PATH ) > die( 'whatevs' )

@ericlewis
11 years ago

#4 @ericlewis
11 years ago

totally

#5 @boonebgorges
11 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 7421:

Improve compatibility with develop.svn.wordpress.org unit test suite

This changeset ensures that the BP tests can be run from within a
develop.svn.wordpress.org setup. Backward compatibility for custom locations
using the WP_TESTS_DIR environment variable is maintained.

Fixes #5200

#6 @boonebgorges
11 years ago

In 7424:

Better backward compatibility for tests configuration

Improved support for the old WP_TESTS_DIR environment variable, in particular
when pointing this environment variable toward the new develop.svn.wordpress.org
configuration.

See #5200

Note: See TracTickets for help on using tickets.