portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Watler <wat...@wispertel.net>
Subject Re: Building js2 with tests?
Date Wed, 16 Dec 2009 19:32:20 GMT
David,

Here is the sequence I use:

 > mvn clean install
 > mvn jetspeed:mvn -Dtarget=testdb
 > mvn -P test test

There is also a target to combine the last two steps in the jetspeed 
plugin, but I don't use that, (due to general pluginphobia).

HTH,

Randy

David Jencks wrote:
> I'm trying to figure out just how much the pluto DI changes I'm 
> working on will break js2... so far
>
> mvn clean install
>
> seems to work, much to my surprise, but if I enable tests I get stuck 
> on some db tests.  I looked around briefly but didn't find any 
> instructions.
>
> What's the secret?
>
> So far I've added this to the root pom properties:
>
>     
> <org.apache.jetspeed.test.database.driver>org.apache.derby.jdbc.EmbeddedDriver</org.apache.jetspeed.test.database.driver>

>
>     
> <org.apache.jetspeed.test.database.url>jdbc:derby:${pom.basedir}/target/testdb;create=true</org.apache.jetspeed.test.database.url>

>
>     
> <org.apache.jetspeed.test.database.user></org.apache.jetspeed.test.database.user>

>
>     
> <org.apache.jetspeed.test.database.password></org.apache.jetspeed.test.database.password>

>
>
>
> and get errors like this:
>
> ...
> Caused by: ERROR 42X05: Table/View 'CAPABILITY' does not exist.
>         at 
> org.apache.derby.iapi.error.StandardException.newException(Unknown 
> Source)
>         at 
> org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown 
> Source)
>         at 
> org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown 
> Source)
>         at 
> org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
>         at 
> org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown 
> Source)
>         at 
> org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown 
> Source)
>         at 
> org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
>         at 
> org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown 
> Source)
>         at 
> org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
>         at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown 
> Source)
>         at 
> org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown

> Source)
>         ... 98 more
> Tests run: 8, Failures: 0, Errors: 8, Skipped: 0, Time elapsed: 8.81 
> sec <<< FAILURE!
>
> Results :
>
> Tests in error:
>   firstTestSetup(org.apache.jetspeed.capabilities.TestCapability)
>   testCapability(org.apache.jetspeed.capabilities.TestCapability)
>   testNewMimeType(org.apache.jetspeed.capabilities.TestCapability)
>   testNewCapability(org.apache.jetspeed.capabilities.TestCapability)
>   testNewMediaType(org.apache.jetspeed.capabilities.TestCapability)
>   testNewClient(org.apache.jetspeed.capabilities.TestCapability)
>   testCapabilityRepeat(org.apache.jetspeed.capabilities.TestCapability)
>   lastTestTeardown(org.apache.jetspeed.capabilities.TestCapability)
>
> Tests run: 8, Failures: 0, Errors: 8, Skipped: 0
>
> thanks
> david jencks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message