Skip to main content
Participating Frequently
Sep 13, 2009 6:01 PM UTC
Answered

test fails during build - flex-pmd-ruleset

Hi, I have followed the developer documentation for how to build the project, on step 7 it fails because the following tests are failing inside flex-pmd-ruleset:

Failed tests:
  testProcessViolatingFiles(com.adobe.ac.pmd.rules.unused.UnusedLocalVariableRuleTest)
  testBuildMessageName(com.adobe.ac.pmd.rules.core.EmptyRuleTest)
  testProcessViolatingFiles(com.adobe.ac.pmd.rules.naming.WronglyNamedVariableRuleTest)
  testProcessViolatingFiles(com.adobe.ac.pmd.rules.unused.UnusedPrivateMethodRuleTest)

Tests run: 219, Failures: 4, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

I'm not sure how to fix these failures, any clues as what the problem may be? I ran "mvn package" from the flex-pmd-parent from the command line.

TIA,

Magnus

This topic is closed to new replies. Start a new post to keep the conversation going.
Xavier AgnettiCorrect answer
Inspiring
Sep 14, 2009 1:01 PM UTC

I indeed use 1.5 as a JVM.

Can you sync again, please?

Any differences using mvn install?

Xavier

15 replies

Inspiring
Sep 14, 2009 8:58 AM UTC

Both trunk and Rc3 branch are under continuous integration, and the build would be broken if any unittests were failing.

I would try to launch mvn install.

Xavier

Translate
TexMagsAuthor
Participating Frequently
Sep 14, 2009 12:37 PM UTC

I checked out from the trunk, I assumed it's something in my environment. Funny thing is that I've tried to build it on two different machines and it fails with the same error on both machines.

mvn install also fails with the same set of tests. Do you build it with Java 1.5 or 1.6? I'm using 1.6, just trying to think of anything that may explain my build problems.

TIA,

Magnus

Translate
Xavier AgnettiCorrect answer
Inspiring
Sep 14, 2009 1:01 PM UTC

I indeed use 1.5 as a JVM.

Can you sync again, please?

Any differences using mvn install?

Xavier

Translate
Inspiring
Sep 14, 2009 8:35 AM UTC

Did you check out trunk or a specific branch?

Can you try to invoke mvn install?

Xavier

Translate