Comments

marvil07’s picture

for the record

Repository class unit tests works after http://drupal.org/cvs?commit=410920

the tests needed to fix are:

- Version Control Account Status functional testing
- Version Control Repository Management functional testing

marvil07’s picture

debugging and fix the 2nd param passed to VersioncontrolEntityController::load() at testAddRepository()

Notice that there is a problem at the defaultPrefix on the query object generated, it is empty instead of being the one selected by simpletest.

A dbtng problem?

sdboyer’s picture

Issue tags: +git phase 2, +git sprint 3

tagging, we really need this sooner than later. like, now.

marvil07’s picture

Issue tags: +git phase 2, +git sprint 3

oopps

neclimdul’s picture

#957262: Make sure autoload registry is setup peripherally associated with getting tests working.

marvil07’s picture

Let me make a little summary of what is happening with tests:

It seems like we are blocked until patches on dbtng and simpletest get in.

neclimdul’s picture

That's a pretty good summary but there's one more problem. Just to make it a little more concise as I think I may be the only one able to get vcapi tests running atm.

1) Prefixes don't work in simpletests. patch: #914392-5: While testing, default prefix is used instead of simpletest prefix by dbtng-driven queries
2) autoload doesn't register dbtng object during simpletests. patch: http://drupal.org/node/957262#comment-3654338
3) dbtng_init() doesn't get called in simpletests so we don't have the global $databases variable initialized. psuedo-patch: #955996-6: Exception: The specified database connection is not defined: default)
4) Random failures when logining in users or making requests because of invalid headers. patch: #890440-14: Backport latest SimpleTest code from D7

marvil07’s picture

Status: Active » Needs work
StatusFileSize
new820 bytes

I am now depending on DBTNGTestCase (see #914392: While testing, default prefix is used instead of simpletest prefix by dbtng-driven queries for details).

Still work to do, but finally I think I can work on versioncontrol stuff(not its dependencies)

marvil07’s picture

Use what is on DBTNGTestCase instead of depending on it since we already have a base class for testing :-)

marvil07’s picture

blame on me for forgetting remove the dependency

marvil07’s picture

updated to add recently views dependency.

all test except account status working (but waiting other projects commits too)

sdboyer’s picture

Status: Needs work » Fixed

Oh man. Screen fulla green. Way to go, folks.

marvil07’s picture

Assigned: Unassigned » marvil07
Status: Fixed » Active
Issue tags: +git sprint 4

mmm, this is not really completely committed.. in the other side I need to update the patch since there was some changes in dbtng: #914392-23: While testing, default prefix is used instead of simpletest prefix by dbtng-driven queries

marvil07’s picture

Status: Active » Needs review
StatusFileSize
new2.37 KB

I will commit this patch, and after it, all tests are passing(except account status, but it is not really related to this :-p)

marvil07’s picture

Status: Needs review » Fixed
marvil07’s picture

Just another related: #890216-17: change nomeclature to use $username(s) instead of $vcs_username(s)

It makes account status module test to pass, so finally all test would be working again.

Status: Fixed » Closed (fixed)
Issue tags: -git phase 2, -git sprint 3, -git sprint 4

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit cf3e4a8 on repository-families, drush-vc-sync-unlock by marvil07:
    bug #893010 by marvil07, neclimdul: Fix tests.
    
    - Add recently views...

  • Commit cf3e4a8 on repository-families by marvil07:
    bug #893010 by marvil07, neclimdul: Fix tests.
    
    - Add recently views...