From c5ee4a6ac1bfb07b7d043d71559801914e21f6d3 Mon Sep 17 00:00:00 2001 From: Override-6 Date: Sun, 29 Jan 2023 02:06:12 +0100 Subject: [PATCH] setting up UTs in drone --- drone/.drone.yml | 34 +++++++++++----------- target/test-reports-zio/output.json | 45 +++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 17 deletions(-) create mode 100644 target/test-reports-zio/output.json diff --git a/drone/.drone.yml b/drone/.drone.yml index fd2ac37..fee1c2d 100644 --- a/drone/.drone.yml +++ b/drone/.drone.yml @@ -10,21 +10,21 @@ steps: - name: build path: ./build commands: - - ./gradlew :test - - ./gradlew :shadowJar + - ./mill tests.test - - name: Deploy - image: override6/tbasket-backend:latest - depends_on: - - 'Unit tests' - environment: - SSH_PRIVATE_KEY: - from_secret: SSH_PRIVATE - PASSWD: - from_secret: PASSWD - volumes: - - name: build - path: ./build - commands: - - chmod 777 drone/deliver.sh - - drone/deliver.sh +# - name: Deploy +# image: override6/tbasket-backend:latest +# depends_on: +# - 'Unit tests' +# environment: +# SSH_PRIVATE_KEY: +# from_secret: SSH_PRIVATE +# PASSWD: +# from_secret: PASSWD +# volumes: +# - name: build +# path: ./build +# commands: +# - ./mill Core.compile +# - chmod 777 drone/deliver.sh +# - drone/deliver.sh diff --git a/target/test-reports-zio/output.json b/target/test-reports-zio/output.json new file mode 100644 index 0000000..4cbe5e4 --- /dev/null +++ b/target/test-reports-zio/output.json @@ -0,0 +1,45 @@ +{ + "results": [ + { + "name" : "org.tbasket.test.pages.LoginPageHandlerTests/\/login page handler/login situation tests/login with unknown account", + "status" : "Success", + "durationMillis" : "3408", + "annotations" : "", + "fullyQualifiedClassName" : "org.tbasket.test.pages.LoginPageHandlerTests", + "labels" : ["\/login page handler", "login situation tests", "login with unknown account"] + }, + { + "name" : "org.tbasket.test.pages.LoginPageHandlerTests/\/login page handler/erroned request body tests/with invalid json", + "status" : "Success", + "durationMillis" : "2403", + "annotations" : "", + "fullyQualifiedClassName" : "org.tbasket.test.pages.LoginPageHandlerTests", + "labels" : ["\/login page handler", "erroned request body tests", "with invalid json"] + }, + { + "name" : "org.tbasket.test.pages.LoginPageHandlerTests/\/login page handler/erroned request body tests/with no password attribute", + "status" : "Success", + "durationMillis" : "2406", + "annotations" : "", + "fullyQualifiedClassName" : "org.tbasket.test.pages.LoginPageHandlerTests", + "labels" : ["\/login page handler", "erroned request body tests", "with no password attribute"] + }, + { + "name" : "org.tbasket.test.pages.LoginPageHandlerTests/\/login page handler/erroned request body tests/with no mail attribute", + "status" : "Success", + "durationMillis" : "2412", + "annotations" : "", + "fullyQualifiedClassName" : "org.tbasket.test.pages.LoginPageHandlerTests", + "labels" : ["\/login page handler", "erroned request body tests", "with no mail attribute"] + }, + { + "name" : "org.tbasket.test.pages.LoginPageHandlerTests/\/login page handler/erroned request body tests/empty packet", + "status" : "Success", + "durationMillis" : "2436", + "annotations" : "", + "fullyQualifiedClassName" : "org.tbasket.test.pages.LoginPageHandlerTests", + "labels" : ["\/login page handler", "erroned request body tests", "empty packet"] + } + + ] +} \ No newline at end of file