[JBoss JIRA] Created: (TEIIDDES-802) Tests Using PowerMock Fail When Running Tycho Build
by Dan Florian (JIRA)
Tests Using PowerMock Fail When Running Tycho Build
---------------------------------------------------
Key: TEIIDDES-802
URL: https://issues.jboss.org/browse/TEIIDDES-802
Project: Teiid Designer
Issue Type: Task
Components: Build
Affects Versions: 7.1
Reporter: Dan Florian
Fix For: Future
The tests in the projects that use PowerMock are not being run during the nightly build. The following projects use PowerMock:
1. org.teiid.designer.core.test
2. org.teiid.designer.ddl.importer.test
3. org.teiid.designer.dqp.test
4. org.teiid.designer.vdb.test
Once the problem is fixed, references to these projects need to be uncommented in the tests/pom.xml and in org.teiid.designer.tests.feature/feature.xml so that their tests will be run in the nightly build.
I've investigated using the PowerMockRule instead of @RunWith( PowerMockRunner.class ) in the test. In the pom.xml, I've tried adding dependencies to PowerMock and also dependencies to the maven-osgi-test-plugin to PowerMock. Didn't have any luck with anything I've tried so far.
In the root directory of one of the above projects execute the following command to run a local build and run tests of that one project:
mvn3 clean install -B -fae -e -P helios-remote-target -X
Here are some example pom.xml code that I have tried:
<build>
<plugin>
<groupId>org.sonatype.tycho</groupId>
<artifactId>maven-osgi-test-plugin</artifactId>
<version>${tychoVersion}</version>
<dependencies>
<dependency>
<groupId>org.jboss.tools</groupId>
<artifactId>org.powermock.osgi</artifactId>
<version>1.4.7</version>
</dependency>
</dependencies>
</plugin>
</build>
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 5 months
[JBoss JIRA] Created: (TEIIDDES-803) Fix Ignored Tests So That They Will Be Run
by Dan Florian (JIRA)
Fix Ignored Tests So That They Will Be Run
------------------------------------------
Key: TEIIDDES-803
URL: https://issues.jboss.org/browse/TEIIDDES-803
Project: Teiid Designer
Issue Type: Task
Components: Build
Affects Versions: 7.2
Reporter: Dan Florian
Fix For: Future
These tests are intentionally not being run by the build and need to be fixed:
1. org.teiid.designer.core.test/TestModelEditor: has renamed tests so that those tests will not be run
2. org.teiid.designer.dqp.test/ServerTest: this test class has been commented out in pom.xml
3. org.teiid.designer.query.ui.test/TestDisplayNodeFactory: has renamed tests so that those tests will not be run
4. org.teiid.designer.transformation.test/TestPerformanceIndexFilePerRecordType: (a) has renamed tests so that those tests won't run, and (b) its helpCreateIndexFile() method is swallowing failed assertions and shouldn't
5. a search of // TODO comments should be done to find other ignored tests
For tests in projects that use PowerMock, TEIIDDES-802 will need to be fixed first.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 5 months
[JBoss JIRA] (TEIIDDES-1156) Cache hint not being displayed after validation of Virtual Procedure in JBoss Developer Studio
by Johnathon Lee (Created) (JIRA)
Cache hint not being displayed after validation of Virtual Procedure in JBoss Developer Studio
----------------------------------------------------------------------------------------------
Key: TEIIDDES-1156
URL: https://issues.jboss.org/browse/TEIIDDES-1156
Project: Teiid Designer
Issue Type: Bug
Components: Teiid Integration
Affects Versions: 7.5, 7.4, 7.3, 7.2
Environment: JBoss Developer Studio 4.0
JBoss Developer Studio 4.1
Reporter: Johnathon Lee
/*+ cache */
CREATE VIRTUAL PROCEDURE
SELECT 'winning';
BEGIN
END
The cache hint is saved w/the Command Object even though it is not reflected in the display of the text after validation.
com.metamatrix.query.internal.ui.sqleditor.component.QueryDisplayComponent:313 & 314
The Command object on these lines has a member cacheHint, holding the reference to the cacheHint, this is ignored when the sqlText is set with the line:
this.sqlText = sqlDisplayNode.toDisplayString();
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months