doctrine / couchdb-odm

A Document Mapper based on CouchDB
http://www.doctrine-project.org
MIT License
150 stars 53 forks source link

tests failing #64

Open dbu opened 11 years ago

dbu commented 11 years ago

doing a composer install --dev tests fail for me.

i have Apache CouchDB 1.0.1 - is there a minimal version required?

There were 6 failures:

1) Doctrine\Tests\ODM\CouchDB\Functional\CascadeRefreshTest::testCascadeRefresh
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Test!'
+'Test2'

/home/david/liip/symfony-cmf/doctrine/couchdb-odm/tests/Doctrine/Tests/ODM/CouchDB/Functional/CascadeRefreshTest.php:51
/usr/bin/phpunit:46

2) Doctrine\Tests\ODM\CouchDB\Functional\InheritenceTest::testPersistInheritanceReferenceOne
Failed asserting that MyCouchDBProxyNS\__CG__\Doctrine\Tests\ODM\CouchDB\Functional\CODM25Child Object (...) is an instance of class "Doctrine\Tests\ODM\CouchDB\Functional\CODM25ChildA".

/home/david/liip/symfony-cmf/doctrine/couchdb-odm/tests/Doctrine/Tests/ODM/CouchDB/Functional/InheritenceTest.php:23
/usr/bin/phpunit:46

3) Doctrine\Tests\ODM\CouchDB\Functional\ManyToOneAssociationTest::testSaveWithAssociation
CmsUser is a proxy, username is NULL through public access
Failed asserting that 'beberlei' is null.

/home/david/liip/symfony-cmf/doctrine/couchdb-odm/tests/Doctrine/Tests/ODM/CouchDB/Functional/ManyToOneAssociationTest.php:46
/usr/bin/phpunit:46

4) Doctrine\Tests\ODM\CouchDB\Functional\RepositoryTest::testFindAll
No results, group is not indexed!
Failed asserting that 10 matches expected 0.

/home/david/liip/symfony-cmf/doctrine/couchdb-odm/tests/Doctrine/Tests/ODM/CouchDB/Functional/RepositoryTest.php:81
/usr/bin/phpunit:46

5) Doctrine\Tests\ODM\CouchDB\Mapping\AnnotationDriverTest::testGetAllClassNamesReturnsAlreadyLoadedClassesIfAppropriate
Failed asserting that an array contains 'Doctrine\Tests\Models\CMS\CmsUser'.

/home/david/liip/symfony-cmf/doctrine/couchdb-odm/tests/Doctrine/Tests/ODM/CouchDB/Mapping/AnnotationDriverTest.php:39
/usr/bin/phpunit:46

6) Doctrine\Tests\ODM\CouchDB\Mapping\ClassMetadataFactoryTest::testGetMetadataForDocumentWithMappedSuperclass
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Doctrine\Tests\ODM\CouchDB\Mapping\Super'
+'Doctrine\Tests\ODM\CouchDB\Mapping\Child'

/home/david/liip/symfony-cmf/doctrine/couchdb-odm/tests/Doctrine/Tests/ODM/CouchDB/Mapping/ClassMetadataFactoryTest.php:38
/usr/bin/phpunit:46

FAILURES!
Tests: 188, Assertions: 535, Failures: 6, Incomplete: 1, Skipped: 26.
Ocramius commented 11 years ago

See my notes on #52 - I had failures as well :\

dbu commented 11 years ago

Ok then its not just me at least. I dont plan to use this, i just want to build the symfony mapping compiler pass but cant install the bundle with a newer symfony because of composer constraints. If the tests fail anyways its hard to tell if the bundle works with a newer symfony... Is the couch odm basically dead or are there people using it?

Ocramius commented 11 years ago

Afaik there are some users, but I'm not sure if they care about those failures :\ On 27 Apr 2013 11:07, "David Buchmann" notifications@github.com wrote:

Ok then its not just me at least. I dont plan to use this, i just want to build the symfony mapping compiler pass but cant install the bundle with a newer symfony because of composer constraints. If the tests fail anyways its hard to tell if the bundle works with a newer symfony... Is the couch osm basically dead or are there people using it?

— Reply to this email directly or view it on GitHubhttps://github.com/doctrine/couchdb-odm/issues/64#issuecomment-17113053 .

dbu commented 11 years ago

how should we proceed about the mapping compiler pass for the couchdb-bundle? i can just add something blindly and hope it works... or i could just add the fallback thing in FOSUserBundle and say in the doc entry https://github.com/symfony/symfony-docs/pull/2507 that if you want this with couchdb you first have to fix couchdb to work with symfony 2.3?

dbu commented 11 years ago

do you think this bundle works with symfony/yaml 2.2 or even 2.3? the dev dependency says <2.2

Ocramius commented 11 years ago

Should work - the usage of yaml by doctrine is generally very generic On 5 May 2013 11:07, "David Buchmann" notifications@github.com wrote:

do you think this bundle works with symfony/yaml 2.2 or even 2.3? the dev dependency says <2.2

— Reply to this email directly or view it on GitHubhttps://github.com/doctrine/couchdb-odm/issues/64#issuecomment-17448925 .

dbu commented 11 years ago

i got things to work in the smyfony 2.2 (but there are no yaml mappings, so no clue about that). i created a PR to fix mapped superclass and will leave it at that for now :-) it should be enough to make the FOSUserBundle work with it again.