Menu

problems with MuClipe help!!

Help
2008-04-11
2016-12-03
  • valeria santini

    valeria santini - 2008-04-11

    I follow your tutorial about Muclipse in http://agile.csc.ncsu.edu/SEMaterials/tutorials/muclipse/ and I think it is very clear but I have some troubles in folowing it. I follow all the steps in 5.0  MuClipse with CoffeeMaker and I have this results:

    MuClipse is running tests...
    Version 2.0
    For project located in:
    D:/Documents and Settings/Administrador/Escritorio/Mtaller/mujava
    Source located in: /src
    Classes located in: /src
    Results located in: /result
    Tests located in: /unittests
    Test to run: unittests/edu/ncsu/csc326/coffeemaker/RecipeTest.java
    With timeout: 4500
    Will run traditional
    Will run class
    -------------------------------
    Tests complete! Results:
    Starting with class: edu.ncsu.csc326.coffeemaker.Recipe
    Final testclass name: unittests/edu/ncsu/csc326/coffeemaker/RecipeTest.java
    Running against traditional mutants...
    java.lang.ClassNotFoundException
    java.lang.ClassNotFoundException
        at mujava.test.OriginalLoader.loadTestClass(OriginalLoader.java:37)
        at mujava.TestExecuter.readTestSet(TestExecuter.java:92)
        at edu.ncsu.muclipse.exec.RunTests.runTest(RunTests.java:165)
        at edu.ncsu.muclipse.exec.RunTests.main(RunTests.java:99)
    =+=+=+=+=+= METHOD: Recipe() =+=+=+=+=+=
    =+=+=+=+=+= METHOD: int_getAmtChocolate() =+=+=+=+=+=
    =+=+=+=+=+= METHOD: void_setAmtChocolate(int) =+=+=+=+=+=
    [Exception 2]java.lang.NullPointerException
    java.lang.NullPointerException
        at mujava.TestExecuter.runMutants(TestExecuter.java:288)
        at mujava.TestExecuter.runTraditionalMutants(TestExecuter.java:159)
        at edu.ncsu.muclipse.exec.RunTests.runTest(RunTests.java:171)
        at edu.ncsu.muclipse.exec.RunTests.main(RunTests.java:99)
    =+=+=+=+=+= METHOD: int_getAmtCoffee() =+=+=+=+=+=
    =+=+=+=+=+= METHOD: void_setAmtCoffee(int) =+=+=+=+=+=
    [Exception 2]java.lang.NullPointerException
    java.lang.NullPointerException
        at mujava.TestExecuter.runMutants(TestExecuter.java:288)
        at mujava.TestExecuter.runTraditionalMutants(TestExecuter.java:159)
        at edu.ncsu.muclipse.exec.RunTests.runTest(RunTests.java:171)
        at edu.ncsu.muclipse.exec.RunTests.main(RunTests.java:99)
    =+=+=+=+=+= METHOD: int_getAmtMilk() =+=+=+=+=+=
    [Exception 2]java.lang.NullPointerException=+=+=+=+=+= METHOD: void_setAmtMilk(int) =+=+=+=+=+=

    java.lang.NullPointerException
        at mujava.TestExecuter.runMutants(TestExecuter.java:288)
        at mujava.TestExecuter.runTraditionalMutants(TestExecuter.java:159)
        at edu.ncsu.muclipse.exec.RunTests.runTest(RunTests.java:171)
        at edu.ncsu.muclipse.exec.RunTests.main(RunTests.java:99)
    [Exception 2]java.lang.NullPointerException
    java.lang.NullPointerException
        at mujava.TestExecuter.runMutants(TestExecuter.java:288)
        at mujava.TestExecuter.runTraditionalMutants(TestExecuter.java:159)
        at edu.ncsu.muclipse.exec.RunTests.runTest(RunTests.java:171)
        at edu.ncsu.muclipse.exec.RunTests.main(RunTests.java:99)
    =+=+=+=+=+= METHOD: int_getAmtSugar() =+=+=+=+=+=
    =+=+=+=+=+= METHOD: void_setAmtSugar(int) =+=+=+=+=+=
    =+=+=+=+=+= METHOD: java.lang.String_getName() =+=+=+=+=+=
    =+=+=+=+=+= METHOD: void_setName(java.lang.String) =+=+=+=+=+=
    =+=+=+=+=+= METHOD: int_getPrice() =+=+=+=+=+=
    [Exception 2]java.lang.NullPointerException
    java.lang.NullPointerException
        at mujava.TestExecuter.runMutants(TestExecuter.java:288)
        at mujava.TestExecuter.runTraditionalMutants(TestExecuter.java:159)
        at edu.ncsu.muclipse.exec.RunTests.runTest(RunTests.java:171)
        at edu.ncsu.muclipse.exec.RunTests.main(RunTests.java:99)
    =+=+=+=+=+= METHOD: void_setPrice(int) =+=+=+=+=+=
    [Exception 2]java.lang.NullPointerException
    java.lang.NullPointerException
        at mujava.TestExecuter.runMutants(TestExecuter.java:288)
        at mujava.TestExecuter.runTraditionalMutants(TestExecuter.java:159)
        at edu.ncsu.muclipse.exec.RunTests.runTest(RunTests.java:171)
        at edu.ncsu.muclipse.exec.RunTests.main(RunTests.java:99)
    =+=+=+=+=+= METHOD: boolean_equals(edu.ncsu.csc326.coffeemaker.Recipe) =+=+=+=+=+=
    =+=+=+=+=+= METHOD: java.lang.String_toString() =+=+=+=+=+=
    Running against classlevel mutants...
    java.lang.ClassNotFoundException
    java.lang.ClassNotFoundException
        at mujava.test.OriginalLoader.loadTestClass(OriginalLoader.java:37)
        at mujava.TestExecuter.readTestSet(TestExecuter.java:92)
        at edu.ncsu.muclipse.exec.RunTests.runTest(RunTests.java:165)
        at edu.ncsu.muclipse.exec.RunTests.main(RunTests.java:105)
    [Exception 2]java.lang.NullPointerException
    java.lang.NullPointerException
        at mujava.TestExecuter.runMutants(TestExecuter.java:288)
        at mujava.TestExecuter.runClassMutants(TestExecuter.java:129)
        at edu.ncsu.muclipse.exec.RunTests.runTest(RunTests.java:169)
        at edu.ncsu.muclipse.exec.RunTests.main(RunTests.java:105)
    -------------------------------
    Results for class edu.ncsu.csc326.coffeemaker.Recipe
    -------------------------------
    Live mutants: 18
    Killed mutants: 0
    Mutation Score: 0.0
    Writing to file...

    Thank in advance for your kind help. Looking forward to your reply.
    Valeria Santini

     
    • diogonc

      diogonc - 2008-09-16

      I`m having the same problem, if anyone can help please.

       
    • Ben Smith

      Ben Smith - 2008-09-16

      Ben Smith here, author of MuClipse.  It seems as though MuClipse cannot find your test classes.  You should double-check that the runtime configuration is pointed at the correct test folder and also be sure that the tests are compiling to the same folder as the source files.  (eg when there is a TestSomething.java, there is a TestSomething.class in the same folder).  Hope that helps!  Ben

       
    • diogonc

      diogonc - 2008-09-17

      three thinks I had to do to make my mutants execute.

      1. Change the compatibility from java 1.6 to java 1.5 "Properties > Java Compiler > JDK Compliance (Compiler Compliance Level)" use 5.0.

      2. In the test case change the setUp() method to public and create an empty public void tearDown()

      3. When you are going to select the target class and the JUnit testcase with the browser button the plugin generated this path:

      result/edu.ncsu.csc326.coffeemaker.Recipe                             for the target class
      unittests/edu/ncsu/csc326/coffeemaker/RecipeTest.java         for the test case

      then i rapleced it to

      edu.ncsu.csc326.coffeemaker.Recipe                                        for the target class
      edu.ncsu.csc326.coffeemaker.RecipeTest                                 for the test case

      Sorry about my english, hope that  help.

      Diogo Nascimento Campanha

       
    • Ben Smith

      Ben Smith - 2008-12-08

      Hello--

      You have at some point either written a post to the SourceForge threads or emailed Ben Smith regarding the Eclipse plug-in MuClipse.  You had issues using MuClipse to execute tests.  Well, good news!  MuClipse v1.3 has been released and it contains fixes to many users' complaints.  Give us another shot.

      Thanks,
      Ben Smith

       
    • A Montana State Student

      I am having a divide by zero error when trying to run tests. Here is the what happens.

      Source located in: /src
      Classes located in: /bin
      Results located in: /result/Dummy
      Tests located in: /src
      Test to run: DummyTest
      With timeout: 4500
      Will run traditional
      -------------------------------
      Tests complete! Results:
      Starting with class: Dummy
      Final testclass name: DummyTest
      Running against traditional mutants...
      Error in update() in TraditioanlMutantsViewerPanel.java
      Exception in thread "main" java.lang.ArithmeticException: / by zero
          at edu.ncsu.muclipse.exec.RunTests.main(RunTests.java:115)

      I have tried it with just the result folder instead of /result/Dummy. My source code and tests are located in the same folder - /src. This happens with multiple classes in several programs. If anyone could help you would be my hero!

       
    • Ben Smith

      Ben Smith - 2009-08-19

      This usually happens when you have no mutants.  The error you are having is probably caused during the mutant generation phase and then not surfacing until you execute the tests.  Also, it is a requirement that your source code is in a different folder than your test code.

       
      • Ragini Gupta

        Ragini Gupta - 2016-12-03

        I am getting the same error.nDivide by zero error; i.e. problem in creating mutants. What is the probable cause for it?

         
    • diogonc

      diogonc - 2009-09-02

      I'm having problems with the timeout settings, I configured it to be 500(ms) but when I run the tests they take to long and when I see the timeout error says that  500 seconds has passed, I have a lot of mutants with timeout. Could you say where's the configuration file so I can change the 500 to 50 or something like that?

       
  • Malik Naeem

    Malik Naeem - 2010-04-26

    NOt found extendedOJ!
      Can some body help me because i donot find this file.
    Thanks in advance.

     
  • milstein

    milstein - 2015-01-22

    Can anyone update the plugin URL please

     
  • Ben Smith

    Ben Smith - 2015-01-22
     
  • Ragini Gupta

    Ragini Gupta - 2016-12-03

    Hi, I am getting the following error on a few classes:
    Exception in thread "main" java.lang.ArithmeticException: / by zero
    at edu.ncsu.muclipse.exec.RunTests.main(RunTests.java:115)

    I understand that the error is due to some issue in generating mutants in the first place but what could be the probable cause for it? If anyone can help me that, it would be really nice. Thanks in advance.
    
     

Log in to post a comment.