[
https://jira.nuxeo.com/browse/NXP-7930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anahide Tchertchian reopened NXP-7930:
--------------------------------------
Sometimes Junit4 tests do not cleanup the repo correctly, it's visible when
they're run just before Junit3 tests using the old test cases.
For instance, on current trunk, the problem is visible when running tests in
nuxeo-services/nuxeo-platform-filemanager-core:
$ mvn clean test -o -Dtest=TestVersionning,TestFileManagerService
=> fails with
testVersioning(org.nuxeo.ecm.platform.filemanager.TestVersionning): Failed to
intialize core session on repository test
$ mvn clean test -o -Dtest=TestVersionning
=> success
> Allow running all tests with another database that H2
> -----------------------------------------------------
>
> Key: NXP-7930
> URL: https://jira.nuxeo.com/browse/NXP-7930
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Components: Tests
> Affects Versions: 5.3 RC
> Reporter: Florent Guillaume
> Assignee: Florent Guillaume
> Priority: Major
> Fix For: 5.5
>
>
> When running tests with for instance {{-Dnuxeo.test.vcs.db=PostgreSQL}} this
> configuration isn't taken into account by JUnit4 tests based on
> {{CoreFeature}}.
> This is because {{RepositorySettings}} half-reinitializes the database based
> on annotations (which isn't configurable enough from outside the tests).
> -> Remove annotation-based database choice.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets