Comments (14)
How far are we with this?
from birt.
How far are we with this?
Somewhere in the first part of this story. Currently org.eclipse.birt.chart.tests
are failing for me.
from birt.
I think that the failing tests (4 for me) are entirely caused by different locale settings.
E.g. the first failing test on my machine says:
expected:<13[.]1> but was:<13[,]1>
I'm pretty sure that this is because my machine has German settings, e.g. a decimal comma is used instead of a decimal point as in US and GB.
But I don't know how this can be fixed.
from birt.
There are also test failures caused by DocArchiveLockManagerTest.java.
I guess that's because the lock file is hardcoded as
static final String LOCK_FILE_NAME = "./utest/lock.lck";
and probably the directory "utest" does not exist. It would be safer to just use "lock.lck" in the current working directory.
from birt.
The first test failure (the one I mentioned a few days ago) can be fixed by changing the file chart/org.eclipse.birt.chart.tests/src/org/eclipse/birt/chart/tests/engine/computation/ValueFormatterTest.java like this:
public void testFormat2( ) throws ChartException
{
NumberFormat us_decimal_format = NumberFormat.getInstance(ULocale.US);
assertEquals( "13.1", ValueFormatter.format( new Double( 13.1 ), null, null, us_decimal_format ) );//$NON-NLS-1$
assertEquals( "13.1", ValueFormatter.format( NumberDataElementImpl.create( 13.1 ), null, null, us_decimal_format ) );//$NON-NLS-1$
}
I recommend to temporarily disable the 3 other failing tests (all 3 are locale-dependent):
MonthDateFormatTest.testFormat:56 Locale=en_CA expected:<Jun[] 2013> but was:<Jun[.] 2013>
ChartUtilTest.testFormatDouble:136 expected:<0[.]000000000> but was:<0[,]000000000>
ChartUtilTest.testStringValue:152 expected:<...5-01-22 11:56:10.125[-08]00> but was:<...5-01-22 11:56:10.125[+01]00>
Then let's see if there are still other tests failing.
I think it's important to have green light for the build. Only then the unit tests are useful for verifying new PRs.
from birt.
The tests are not failing on the server so I don't think we should disable them.
from birt.
we have only 2 test modules active in the pipeline
if you know how to fix others please create a PR
For the current failures in master I created #633
from birt.
Hmm...
It should be possible to run the unit tests on our developer machines - just to have a good feeling before creating a PR.
And our developer machines are using Dutch, Russian or German locale settings, so these tests fail.
And the CI is still red. It seems like there are two different errors which I cannot imagine to be caused by one of the PRs. Instead they seem more or less random to me:
- DocArchiveLockManagerTest.testThread (fails for #633 and for #630 and others).
- ContentCommandTest.testCopyAndPaste (Fails for #624)
from birt.
Hmm...
It should be possible to run the unit tests on our developer machines - just to have a good feeling before creating a PR.
Totally agree. But disabling tests is not giving a good feeling ;)
Fixing these tests should be quite easy?
from birt.
I tried to understand what's going on in MonthDateFormatTest (resp. in MonthDateFormat) yesterday, but I didn't understand the code and looking at the git log didn't help either, so unfortunately I could not fix it.
The failure in ChartUtilTest.testFormatDouble should indeed be easy to fix (similar to ValueFormatterTest).
The failure in ChartUtilTest.testStringValue probably cannot be fixed (unless you fly with your test machine into the expected time zone).
Regarding the other two failures which occur in the CI build (see my comment from 2h ago), I have no idea.
Alexander, can you fix them?
from birt.
Alexander, can you fix them?
both DocArchiveLockManagerTest
and ContentCommandTest
works for me locally
from birt.
Now I have PropertyValueExceptionTest
failing in server environment. It cannot find property definition for "bookmark" of TableItem. No idea why.
from birt.
On my side, I ran mvn install -nf
and I see a large number of test failures.
I summed up all the test failures and errors here
https://gist.github.com/xavierdpt/93d198c2e684a5d330eb04b2c01e6a80
I think it would be quite difficult to fix all them at once, and it would be simpler to fix them one after another.
ChartUtilTest.testStringValue can be fixed by setting the default timezone in the unit test, I can make a PR for this one.
On a side note, the classes in com.ibm.icu.util.* should probably be migrated to java.util.* (Calendar, TimeZone, etc...), but this will be easier to do after all the unit tests have been fixed and a separated issue should be created to track this.
from birt.
Closing. We are working on this story step by step and we have succeeded in reviving a great number of tests.
from birt.
Related Issues (20)
- Can't generate Excel file: Could not auto-size column. Make sure the column was tracked prior to auto-sizing the column. HOT 1
- Getting NoSuchmethodError: "TTFReader.loadTTF" after updating BIRT runtime 4.10 to 4.15 HOT 1
- Errors in reports when upgrading BIRT Runtime from 4.10 to 4.15 HOT 2
- Expression Builder, Column Binding, sorting option - add additional sort option "Sort descending" HOT 1
- How can i fix this ReportServiceException HOT 2
- scripted data source 数据集只加载一次
- Out of memory error when creating a chart HOT 58
- Where is "null value" check box parameter in debug mode ??? 4.14 HOT 3
- 4.17 Releng HOT 1
- Use edge as default browser and use modern help HOT 3
- Show the DataView when a new report is created
- body/label/text-property is not localized in XLSX output HOT 4
- Excel, Apache POI 5.2.3 - PageMargin is changed to a new parameter list of methods HOT 1
- Excel, image scaling is wrong when only one image dimension is set HOT 1
- Excel, small images will be scalled to large images and lose the original size HOT 2
- Can units be added on Y-axis?
- Can it add collapsible effect feature?
- Does the row header support sorting and filtering functions?
- Excel, enhance the handling of image alignment - horizontal & vertical alignment HOT 2
- Birt Report Header Issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from birt.