[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] Running a custom application for tests

can't this also be achieved with a suite-wide setup/teardown?

@RunWith(Suite.class)
@SuiteClasses(Test1.class, AnotherTest.class)
public class AllTests {

  @BeforeClass
  public static void suiteSetup() {
    // do preparation here
  }

  @AfterClass
  public static void suiteTearDown() {
  }

}

-----Original Message-----
From: tycho-dev-bounces@xxxxxxxxxxx [mailto:tycho-dev-bounces@xxxxxxxxxxx] On Behalf Of Gunnar Wagenknecht
Sent: Mittwoch, 4. Juli 2012 17:34
To: tycho-dev@xxxxxxxxxxx
Subject: [tycho-dev] Running a custom application for tests

Hi,

We are investigating migrating a larger Gyrex based application to
Tycho. In Gyrex we've written a test application that helps with
testing. It bootstraps a testable server environment. One thing we
noticed is that this application is not executed when running headless
Surefire plug-in test. I think it's because the HeadlessTestApplication
does not support this.

A while submitted a patch to PDE which implemented support for running
headless applications for unit testing. So I was looking into
possibilities to also implement this in Tycho.

One option is to implement it directly in HeadlessTestApplication.
Another is to simply allow to specify a custom test application to run.
The change is small but it I'm wondering if it's ok to expose this
capability?

https://git.eclipse.org/r/6610

-Gunnar


-- 
Gunnar Wagenknecht
gunnar@xxxxxxxxxxxxxxx
http://wagenknecht.org/


_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-dev