New Topic: Problem building/testing 1.9.x branch: failing tests

View: New views
1 Messages — Rating Filter:   Alert me  

New Topic: Problem building/testing 1.9.x branch: failing tests

by Nathan Voxland-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A new topic, 'Problem building/testing 1.9.x branch: failing tests', has been made on a board you are watching.

You can see it at
http://liquibase.org/forum/index.php?topic=71.new#new

The text of the topic is shown below:

Hi,

I have been using Liquibase for about a year now, but this is the first time I've tried to build it.  I am also new to svn, so that doesn't help.  I am a fairly old hand at ant and java.

I'm building and running tests, and I'm encountering some failures and errors.

I grabbed what I think is the 1.9.x branch using this command:
    svn co http://liquibase.jira.com/svn/CORE/branches/1_9 liquibase_BR_1_9

Then I navigated into the liquibase_BR_1_9/core/src  directory and built using this command:
    ant

Then I built and ran the tests using this command:
    ant test

With the results that I got 1 failure and 7 errors.

liquibase.LiquibaseTest failed with Code:
junit.framework.AssertionFailedError: expected:<14> but was:<15>
at liquibase.LiquibaseTest.getImplementedDatabases(LiquibaseTest.java:76)
.  I looked at the code, and DatabaseFactory is creating 15 Databases, but the LiquibaseTest is asserting against 14.

liquibase.change.AddColumnChangeTest is erroring out in the sybaseNull, sybaseNotNull, and sybaseConstraintsNull tests.
Code:
    [junit] Testcase: sybaseNull(liquibase.change.AddColumnChangeTest): Caused an ERROR
    [junit] null expected:<...TER TABLE [TAB] ADD [NEWCOL] TYP NULL> but was:<...TER TABLE [TAB] ADD [[NEWCOL]] TYP NULL>
    [junit]     at liquibase.change.AddColumnChangeTest.sybaseNull(AddColumnChangeTest.java:218)
    [junit]
    [junit]
    [junit] Testcase: sybaseNotNull(liquibase.change.AddColumnChangeTest):      Caused an ERROR
    [junit] null expected:<...TER TABLE [TAB] ADD [NEWCOL] TYP NOT NULL> but was:<...TER TABLE [TAB] ADD [[NEWCOL]] TYP NOT NULL>
    [junit]     at liquibase.change.AddColumnChangeTest.sybaseNotNull(AddColumnChangeTest.java:237)
    [junit]
    [junit]
    [junit] Testcase: sybaseConstraintsNull(liquibase.change.AddColumnChangeTest):      Caused an ERROR
    [junit] null expected:<...TER TABLE [TAB] ADD [NEWCOL] TYP NULL> but was:<...TER TABLE [TAB] ADD [[NEWCOL]] TYP NULL>
    [junit]     at liquibase.change.AddColumnChangeTest.sybaseConstraintsNull(AddColumnChangeTest.java:257)


liquibase.change.ModifyColumnChangeTest is erroring out in the generateStatement and generateFullStatementForMysql tests.
Code:
    [junit] Testcase: generateStatement(liquibase.change.ModifyColumnChangeTest):       Caused an ERROR
    [junit] null expected:<..._NAME MODIFY ( NAME [integer](3) )> but was:<..._NAME MODIFY ( NAME [INT](3) )>
    [junit]     at liquibase.change.ModifyColumnChangeTest.generateStatement(ModifyColumnChangeTest.java:44)
    [junit]
    [junit]
    [junit] Testcase: generateFullStatementForMysql(liquibase.change.ModifyColumnChangeTest):   Caused an ERROR
    [junit] null expected:<...NAME` MODIFY `NAME` [integer](3) NOT NULL DEFAULT...> but was:<...NAME` MODIFY `NAME` [INT](3) NOT NULL DEFAULT...>
    [junit]     at liquibase.change.ModifyColumnChangeTest.generateFullStatementForMysql(ModifyColumnChangeTest.java:85)


liquibase.database.H2DatabaseTest errors out in the escapeTableName_noSchema and escapeTableName_withSchema tests.
Code:
    [junit] Testcase: escapeTableName_noSchema(liquibase.database.H2DatabaseTest):      Caused an ERROR
    [junit] null expected:<[`tableName`]> but was:<[tableName]>
    [junit]     at liquibase.database.H2DatabaseTest.escapeTableName_noSchema(H2DatabaseTest.java:73)
    [junit]
    [junit]
    [junit] Testcase: escapeTableName_withSchema(liquibase.database.H2DatabaseTest):    Caused an ERROR
    [junit] null expected:<[`schemaName`.`tableName`]> but was:<[schemaName.tableName]>
    [junit]     at liquibase.database.H2DatabaseTest.escapeTableName_withSchema(H2DatabaseTest.java:79)


JAVA_HOME points to JDK 1.5 (I usually build with JDK 6 but Liquibase seems to want 1.5.)

Ant is 1.7.0.

I'm building on cygwin under Windows XP.

Do these test cases currently pass for other people?  If so, then it's something in my environment that I need to fix, or maybe I'm grabbing the code wrong or building it wrong.  But looking at the first one, I'm not so sure it's me.  I thought it might be leftovers from a previous version of Liquibase, but I've cleared out my CLASSPATH.

Is the official daily build junit results posted online somewhere?

thanks for any help,
shoover

Unsubscribe to new topics from this board by clicking here: http://liquibase.org/forum/index.php?action=notifyboard;board=2.0

Regards,
The LiquiBase Community Forum Team.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Liquibase-devel mailing list
Liquibase-devel@...
https://lists.sourceforge.net/lists/listinfo/liquibase-devel