You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Savage (JIRA)" <ji...@apache.org> on 2010/08/11 16:29:15 UTC

[jira] Resolved: (FELIX-2537) Add support for scripting junit test scenarios with sigil junit

     [ https://issues.apache.org/jira/browse/FELIX-2537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Savage resolved FELIX-2537.
---------------------------------

         Assignee: David Savage
    Fix Version/s: sigil-1.0.0
       Resolution: Fixed

This is now supported via the following commands:

# install bundles
g! context:installBundle gogo/junit/build/lib/org.apache.felix.sigil.gogo.junit.jar
g! context:installBundle common/junit/build/lib/org.apache.felix.sigil.common.junit.jar
g! context:installBundle gogo/junit/build/deps/com.springsource.org.junit.jar
g! context:installBundle gogo/junit/build/deps/com.springsource.org.apache.tools.ant.jar
g! context:installBundle gogo/junit/build/deps/com.springsource.org.apache.tool.ant.taskdefs.optional.junit.jar

# start gogo.junit
g! start 6

# define test
g! t = sigil:newTest foo { junit:fail wibble }
g! sigil:runTests -d /tmp/results/ $t
Writing results to /tmp/results
Failure foo(org.apache.felix.sigil.gogo.junit.SigilTestAdapter$1): wibble
Ran 0 tests. 1 failures 0 errors.
g! cat /tmp/results/TEST-foo.xml
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="0" failures="1" hostname="feynman.local" name="foo" tests="0" time="0.0" timestamp="2010-08-11T14:22:13">
  <properties />
  <testcase classname="org.apache.felix.sigil.gogo.junit.SigilTestAdapter$1" name="foo" time="0.0010">
    <failure message="wibble" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: wibble
        at org.apache.felix.gogo.runtime.Reflective.method(Reflective.java:136)
        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:458)
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:384)
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
        at org.apache.felix.sigil.gogo.junit.SigilTestAdapter$1.run(SigilTestAdapter.java:51)
        at org.apache.felix.sigil.gogo.junit.SigilJunitRunner.runTests(SigilJunitRunner.java:195)
        at org.apache.felix.sigil.gogo.junit.SigilJunitRunner.runTests(SigilJunitRunner.java:117)
        at org.apache.felix.sigil.gogo.junit.SigilJunitRunner.runTests(SigilJunitRunner.java:77)
        at org.apache.felix.gogo.runtime.Reflective.method(Reflective.java:136)
        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:458)
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:384)
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:78)
        at com.paremus.posh.shell.Console$3.call(Console.java:349)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:637)
</failure>
  </testcase>
  <system-out><![CDATA[]]></system-out>
  <system-err><![CDATA[]]></system-err>
</testsuite>

> Add support for scripting junit test scenarios with sigil junit
> ---------------------------------------------------------------
>
>                 Key: FELIX-2537
>                 URL: https://issues.apache.org/jira/browse/FELIX-2537
>             Project: Felix
>          Issue Type: New Feature
>          Components: Sigil
>            Reporter: David Savage
>            Assignee: David Savage
>             Fix For: sigil-1.0.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.