Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Building the project #19

Open
themikejr opened this issue Feb 24, 2015 · 0 comments
Open

Building the project #19

themikejr opened this issue Feb 24, 2015 · 0 comments

Comments

@themikejr
Copy link

First of all, I should say I'm very excited at the prospect of being able to run jasmine tests along with junit tests. Thank you for developing this plugin!

I'm trying to build the project locally (from master) and encountering some test failures. I'm getting this exception:

useJasmineRunnerOnJasmineTestRunnerBeforeAndAfterClass(be.klak.junit.jasmine.JasmineTestRunnerBeforeAndAfterTest)
  Time elapsed: 0.127 sec  <<< ERROR!
java.lang.RuntimeException: Exception while firing After method: runMijAfterOok
        at be.klak.junit.jasmine.JasmineTestRunner.fireMethodsWithSpecifiedAnnotationIfAny(JasmineTestRunner.java
:206)
        at be.klak.junit.jasmine.JasmineTestRunner.run(JasmineTestRunner.java:170)
        at be.klak.junit.jasmine.JasmineTestRunnerBeforeAndAfterTest.useJasmineRunnerOnJasmineTestRunnerBeforeAnd
AfterClass(JasmineTestRunnerBeforeAndAfterTest.java:21)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37)
        at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
        at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at be.klak.junit.jasmine.JasmineTestRunner.fireMethodsWithSpecifiedAnnotationIfAny(JasmineTestRunner.java
:200)
        ... 33 more
Caused by: java.lang.AssertionError: unexpected element(s):<[0]> in <[0, 1]>
        at org.fest.assertions.Fail.failure(Fail.java:228)
        at org.fest.assertions.Assert.failure(Assert.java:149)
        at org.fest.assertions.ItemGroupAssert.failureIfUnexpectedElementsFound(ItemGroupAssert.java:107)
        at org.fest.assertions.ItemGroupAssert.assertContainsOnly(ItemGroupAssert.java:79)
        at org.fest.assertions.ObjectGroupAssert.containsOnly(ObjectGroupAssert.java:65)
        at be.klak.junit.jasmine.classes.JasmineTestRunnerBeforeAndAfterClass.runMijAfterOok(JasmineTestRunnerBef
oreAndAfterClass.java:30)
        ... 38 more

My machine is running windows 7. I'm getting this error after downloading the repo and executing:

mvn clean install

Please advise.

Alternatively, is there a mirror that this dependency can be downloaded from so that I don't have to build locally?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant