You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Gil Portenseigne (Jira)" <ji...@apache.org> on 2024/04/05 10:22:00 UTC
[jira] [Closed] (OFBIZ-12995) Fix Accounting Groovy tests
[ https://issues.apache.org/jira/browse/OFBIZ-12995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gil Portenseigne closed OFBIZ-12995.
------------------------------------
Resolution: Fixed
> Fix Accounting Groovy tests
> ---------------------------
>
> Key: OFBIZ-12995
> URL: https://issues.apache.org/jira/browse/OFBIZ-12995
> Project: OFBiz
> Issue Type: Sub-task
> Components: accounting
> Affects Versions: Upcoming Branch
> Reporter: Jacques Le Roux
> Assignee: Jacques Le Roux
> Priority: Major
> Fix For: Upcoming Branch
>
>
> As mentionned in OFBIZ-12985 after OFBIZ-12813 the Groovy tests fail.
> There are severtal aspects, at least for now:
> # structures (folders used and references to them);
> # compilation (since OFBIZ-11165 Groovy tests must be compiled);
> # migration from XML to Groovy specific errors
> About point 1 and 2, it turns out to be that the folders used don't allow compilation.
> So, unlike unit tests ModelServiceTest.groovy, TestServices.groovy and FileUtilTests.groovy put in sourcesets/test, integration tests must be in sourcesets/main folders. Their references should be changed too.
> This is a subtask for the accounting component. The only changes are to move Groovy tests to main and to accordingly change the references in applications/accounting/testdef/ files.
> This fixes the inability to find the files where they are expected. Remains few issues related to the point 3.
> This can be easily tested using gradlew "ofbiz --test component=accounting"
--
This message was sent by Atlassian Jira
(v8.20.10#820010)