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: Fri, 31 Jan 2025 04:15:26 +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=LTQYXgGSwVFc6jhaJ7zJGZHxTaKsHQLLQfrzg7jWtUg=; b=KwielteFejyvIjNffr0/2HCbwKF2+2rwOWo938GsHnn6MQqS3KoNmcoxFsQDvmD7KmTp0g5Tq3CNepoC1pJXYGcahUp6W77C++Rq50xizHbo6dhsvz/3oa75aeVZva276c7uxfEgvWRzeLRQgd3bkCrBrmIcoAKijATicABT8wI0Mwm1Ko3fy/VpRPRvJG1qTDCnY+Vj5n/IZfYzVAxWCAIcIeNw1BJ6pUArbT2GTBPbFY/NKGqkIL8KcJr2dCLe5xZAzo79AjATGCFlCHpI7FXv7/OiWOu+2tMSAalJVz0PiBvsApfJhs1S7FCFkyoPZFBVCisXlXvW4YfB2YL1PQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=J6kFzOcFs4khWY8EAVXW8nMJZO4jLGQl5JF1zDoAKOM912DGLwOpG40ZQS1r368o2P/KaI6vrLq7uJMercVC8KsMcOIqeOlX/RpwNPvspYl8ATHzoZ1O20DZPb8F3pKagQd03mIZKzLcFaNlpFtGbiZnANqmKH7fuwSLlB6uXMOka8zSDoKOmNi/ZrKk/rhpblvEx+KrNgp40x0IH1WtpyUrIv/WckW284OKkbgqueWXLkzze9NoZ+UesMAXQS6qd2hCKfjz0e9XMc1NqJhziiL4pSUQwmt9YX89xE+eg6diq+nbwhHzj4b9seOT0VKUCiUS/gc10q2K/X8U0iLydw==
  • 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>
  • Msip_labels:
  • Thread-index: AQHbcv3CUqRsm/wQ7Eail9OdQNzbU7Mvm44AgACphtM=
  • Thread-topic: [External] : Re: [data-dev] Examples to setup TCK

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

Back to the top