Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho + source folder containing tests
  • From: "Keppler Michael (ETAS/ESW-CI)" <Michael.Keppler@xxxxxxxx>
  • Date: Wed, 31 Mar 2021 09:21:17 +0000
  • Accept-language: de-DE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.200) smtp.rcpttodomain=eclipse.org smtp.mailfrom=etas.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=etas.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Edth8YiGicqLnjANidxo23IbcfV0h1ZHa+CuH0aFr9Q=; b=YM/YMUWji6FInJ1vnpNQhjSw4d2wzKnp0OtiNrFgLo8E0nbOXHpj9OS6YXo74/7hy0d7b7ef5VTixTQYIgZGpgKdaLSfWGMX5CehL5F7p9sHAww6+rX+6DQMmLef0KQ1o3axY2zH7ROPoppTEVSF/pHrzLODdPH+A+qfeP1ZMqk9Nmyh7YNeRUy4HmE+KEPwZlKXAPTKhYSlj0Rw+ZtyjNMwCTlVbflqhpRejq4knG2/H6JIrExUdOXFYxOL3EoG+iSvv8xnHWXgbZIgSY5u+GLZeQOdP2FsoRReaVVJi4NyzgLAvVFB6VmiY1hNuSuKohy89cmxptE/KnnF2zncbQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KYvD7t5xxsV2fZZ1/Ae6nJhr+FBPteztOenADU76K60ayzKKZzy5oAnd2mBu4go6865MrvtLsznL8vVyvUlL9Hm4olwnvKSnY5R6XEK92ni0BbdcArjzpem8hJt9duTguIYV333Zf5EvXrvgmgChVal8t6cMATIZmzUCQlK3qWoc/iBpyiMGg5A0M/T+CSbQZeX2VK3yOTfXPJKHWExiXxHeB5bL6dl8ly7+IG5DMfLh8NmGwy9tKZka9fMdIDGBQTAzBhLZmowvvDX+E83m+cpP59/QmoxZ72lIP3Ho5HqvPiqSrz5nOnvT3ICEAe7yk6NBO1IMlPXsqKwrNzsZYg==
  • Delivered-to: tycho-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/tycho-user/>
  • List-help: <mailto:tycho-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/tycho-user>, <mailto:tycho-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/tycho-user>, <mailto:tycho-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHXJJ3qjAL/f6GQLEOfZvkFUi/ceaqa1TUAgAGXFQCAAR5lgIAASd1g
  • Thread-topic: [tycho-user] Tycho + source folder containing tests

Might it work when adding the Junit container to the build path? At least in the last discussion about how to make tests work in both PDE and Tycho that was a crucial point, AFAIR.

 

Mit freundlichen Grüßen / Best regards

Michael Keppler

LTO Release Engineering (ETAS/ESW-CI)
Tel. +49 711 3423-2429 | Fax +49 711 89661-0 |
Michael.Keppler@xxxxxxxx


Von: tycho-user <tycho-user-bounces@xxxxxxxxxxx> Im Auftrag von Christoph Läubrich
Gesendet: Mittwoch, 31. März 2021 08:55
An: Tycho user list <tycho-user@xxxxxxxxxxx>
Betreff: Re: [tycho-user] Tycho + source folder containing tests

 

I just created a small test, adding junit to the "automated dependecies section" and it works to compile this in PDE and run this as a plain test. Sadly running the test as a plugin test fails with bundle.test.AdderTest cannot be found by bundle.testwith so it seems the "test-source-folder" itself is only partly supported by PDE.

Am 30.03.21 um 15:49 schrieb Andreas Sewe:

Mickael Istria wrote:
It would be interesting to let Tycho automatically build a test fragment
from the "test" source folders of the current module and make
tycho-surefire-plugin include it. But it involves tweaking a lot of
things in many mojo. The result would probably be great, but not easy to
reach IMO.
 
The problem with automatically creating a test fragment is test only
dependencies, i.e., stuff like
 
  Import-Package: org.mockito
 
That's certainly something you don't want in your (non-test)
MANIFEST.MF, but where would you specify it in a manifest-first build?
(A POM-first build has test-scoped dependencies for this.)
 
Best wishes,
 
Andreas
 



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user

Back to the top