[
https://jira.duraspace.org/browse/DS-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Donohue closed DS-1198.
---------------------------
Resolution: Fixed
Pull Request was committed/accepted
> Unit Testing Framework fails to initialize properly on Windows OS
> -----------------------------------------------------------------
>
> Key: DS-1198
> URL: https://jira.duraspace.org/browse/DS-1198
> Project: DSpace
> Issue Type: Bug
> Affects Versions: 3.0
> Environment: Windows OS
> Reporter: Tim Donohue
> Assignee: Tim Donohue
> Fix For: 3.0
>
>
> With recent changes to the Unit Testing Framework (added after 1.8.x
> releases), the AbstractUnitTest class fails to initialize the testing
> environment on Windows OS.
> The reason that the testing environment fails to initialize properly is
> because of the difference in file path separators (i.e. Windows uses
> backslashes as path separators, which we all know cause issues in Java
> Strings if not escaped properly).
> This problem comes into play in the dspace-api & dspace-stats POMs, as they
> both use the ${project.build.directory} maven property to initialize the
> "dspace.dir" in dspace.cfg, etc. On Windows, unfortunately the
> ${project.build.directory} has backslashes as path separators, which causes
> issues in initializing the DSpace test environment.
> The end result is that you end up with FileNoteFoundExceptions when the test
> environment attempts to load anything in the "config" directory.
> Although this isn't a major issue, it's obviously a problem for folks
> developing on Windows who want to also perform Unit Testing. Currently it's
> not possible to run any unit tests on Windows.
> I've found a way to fix this issue in the Maven POMs & will submit a pull
> request for review shortly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel