Skip to main content
Participating Frequently
September 13, 2009
Answered

test fails during build - flex-pmd-ruleset

  • September 13, 2009
  • 2 replies
  • 4704 views

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 has been closed for replies.
Correct answer Xavier Agnetti

I indeed use 1.5 as a JVM.

Can you sync again, please?

Any differences using mvn install?

Xavier

2 replies

Adobe Employee
September 14, 2009

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

TexMagsAuthor
Participating Frequently
September 14, 2009

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

Xavier AgnettiCorrect answer
Adobe Employee
September 14, 2009

I indeed use 1.5 as a JVM.

Can you sync again, please?

Any differences using mvn install?

Xavier

Adobe Employee
September 14, 2009

Did you check out trunk or a specific branch?

Can you try to invoke mvn install?

Xavier