Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [data-dev] [External] : Re: Examples to setup TCK
  • From: Denis Stepanov <denis.s.stepanov@xxxxxxxxxx>
  • Date: Mon, 10 Feb 2025 15:50:13 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fzkO3A8IfDq2YkVBJydFSU3il342hDnHiJighU1cJMc=; b=rSuUzRQIj9DsK9vzTMont/0fPDUWM9bzSfVxHgJeIYfQozYJsGbpKCYiyMlewaFLggVe9WjFLUCzz/In99w6v0lFRVNlW7Xmts8bZoJ7spErOGkzFxgxllL/c5Qz+gENqkel1wLO7o9Z1l3BseST6lfc/O85YhlqJwHggwTEnXTsfHwOflNHyCK2ho5HiJUUxknRggaaUDBd9kgFpfeSFL4XkekLbi3fsWNhIYwR9FQ+KNLbSnhgk5s2qrO79oBvRWlJc6Gm5pofMdsB8aUYdKPwa9zmHThc7WaPtrKub5Tfi15QASF9mkZ1sz+qhdTMVKMy8eqhVMmAMvw684n3Fw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=i6e1VB/UwIyttLIissCRqbNXYPHS1O9JSvT+RYWr3K4HuNb6b1DKUvsc36hxenq5BZrm6DB2QnOI9KOqKnOzddYxG4s2zcvkvvV5QnuzayuSyliiygp1iMeZ8x4tEq2YLsN1Bo98uV9rJdjoFotV4uZ7JzNLaw7Rl1qS7QUOfo/0SvhzEGon1bOIk+9Jif1QVEo6xk0iLtZh/kM+Q0JY7UA7toy4RuJpsK+KlEO8pf1mGxp2p8zCz93n+on+ps/RtXaq+FroskcPXtS3J/PoiEZy9MVVp7uOsPSk+KYev4wklX3aRsBKdSyzyenPG8zHwjTOt8AND1dBUAiSpk6MsQ==
  • Delivered-to: data-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/data-dev/>
  • List-help: <mailto:data-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/data-dev>, <mailto:data-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/data-dev>, <mailto:data-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHbeBn4dcLILKsdk06hnRHIn2r/rrNAtYeo
  • Thread-topic: [data-dev] [External] : Re: Examples to setup TCK

Hi Kyle,

Yes, they are not running.
I’m not very familiar with the testing framework. 

I can send you a repo to try, maybe you will see what’s wrong.

Denis

From: data-dev <data-dev-bounces@xxxxxxxxxxx> on behalf of Kyle Aure via data-dev <data-dev@xxxxxxxxxxx>
Sent: Thursday, February 6, 2025 12:04:37 AM
To: data developer discussions <data-dev@xxxxxxxxxxx>
Cc: Kyle Aure <kylejaure@xxxxxxxxx>
Subject: Re: [data-dev] [External] : Re: Examples to setup TCK
 
Hello Denis, sorry for the late reply.

I'm still a bit confused by your request:

Would it be possible to add a system option to not-skip before/after etc. methods but keep the deployment as it is?

If you are deploying an application, then the @Before/@After methods should not run on the client, they should run in the container after your annotation processor runs, and after deployment.
Are you saying that after you deploy the application the @Before/@After methods are not running?

Thank you,
Kyle Jon Aure

On Thu, Jan 30, 2025 at 10:21 PM Denis Stepanov via data-dev <data-dev@xxxxxxxxxxx> wrote:
Hi Kyle,

We are doing a deployment where Micronaut will recompile the test classes with our annotation processors.


​And we replace the test instance with the instance retrieved from the bean context so all the injects can be fulfilled. We cannot skip the deployment. We do the same for other TCKs: validation, JAX-RS.

Would it be possible to add a system option to not-skip before/after etc. methods but keep the deployment as it is?

Thanks,
Denis






From: data-dev <data-dev-bounces@xxxxxxxxxxx> on behalf of Kyle Aure via data-dev <data-dev@xxxxxxxxxxx>
Sent: Thursday, January 30, 2025 6:59 PM
To: data developer discussions <data-dev@xxxxxxxxxxx>
Cc: Kyle Aure <kylejaure@xxxxxxxxx>
Subject: [External] : Re: [data-dev] Examples to setup TCK
 
Hey Denis,

Thanks for the questions.

 I'm trying to integrate the TCK for Micronaut Data but struggling with making the before/each methods run.
According to the internet those methods should be annotated with `RunAsClient` otherwise they are skipped.

How are you attempting to run the TCK? We support two modes against a container (deployed using arquillian) or standalone (on client JVM)?
The Before/After methods for all our tests are meant to be executed alongside the tests.
Therefore, I would expect the methods to be skipped on the client side when the tests run in the container, and I would expect the methods to run on the client when run in standalone mode.

It sounds like you might be attempting to run in standalone mode.  If that is the case you have to set the following JVM property:
-Djakarta.tck.skip.deployment=true

We replace the ArquillianExtension with our own custom extension that will execute these methods on the client JVM when that property is set to true.

 Do you have any examples of integrating Jakarta Data TCK?

For an example of running in standalone mode the JNoSQL project might be a good example: https://github.com/eclipse-jnosql/jnosql-extensions/blob/main/jnosql-data-tck-runner/README.adoc
For am example of running via container deployment the Open Liberty project might be a good example: https://github.com/OpenLiberty/open-liberty/blob/integration/dev/io.openliberty.jakarta.data.1.0_fat_tck/publish/tckRunner/platform/pom.xml

 BTW: EntityTests is missing `addClasses(MultipleEntityRepo.class)` possibly Coordinate as well. I had to create a custom ApplicationArchiveProcessor to make the test class inject it.

Wow thanks for pointing that out.  I'll work on fixing that!

Thank you,
Kyle Jon Aure


On Thu, Jan 30, 2025 at 10:01 AM Denis Stepanov via data-dev <data-dev@xxxxxxxxxxx> wrote:
Hi,
I'm trying to integrate the TCK for Micronaut Data but struggling with making the before/each methods run.

According to internet those methods should be annotated with `RunAsClient` otherwise they are skipped.

Do you have any examples of integrating Jakarta Data TCK?

BTW: EntityTests is missing `addClasses(MultipleEntityRepo.class)` possibly Coordinate as well. I had to create a custom ApplicationArchiveProcessor to make the test class inject it.

Thanks,
Denis
_______________________________________________
data-dev mailing list
data-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://accounts.eclipse.org
_______________________________________________
data-dev mailing list
data-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://accounts.eclipse.org

Back to the top