diff --git a/ballerina-tests/build.gradle b/ballerina-tests/build.gradle index c066f61..7398530 100644 --- a/ballerina-tests/build.gradle +++ b/ballerina-tests/build.gradle @@ -195,18 +195,9 @@ task ballerinaTest { doLast { testPackages.each { testPackage -> - exec { - workingDir "${project.projectDir}/${testPackage}" - environment "JAVA_OPTS", "-DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true" - if (Os.isFamily(Os.FAMILY_WINDOWS)) { - commandLine 'cmd', '/c', "${balJavaDebugParam} bal.bat test ${nativeFlag}" + - " ${testParams} ${groupParams} ${disableGroups} ${windowsDisableGroups} ${debugParams}" + - " && exit %%ERRORLEVEL%%" - } else { - commandLine 'sh', '-c', "bal test ${nativeFlag} ${testParams}" + - " ${groupParams} ${disableGroups} ${debugParams}" - } - } + def env = "JAVA_OPTS -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true ${testParams} ${groupParams}" + + " ${disableGroups} ${windowsDisableGroups} ${debugParams}" + executeBalCommand("test", "${project.projectDir}/${testPackage}", env) } } } diff --git a/ballerina-tests/zipkin-server-tests/tests/get_http_version.bal b/ballerina-tests/zipkin-server-tests/tests/get_http_version.bal index 60252c6..bad6cde 100644 --- a/ballerina-tests/zipkin-server-tests/tests/get_http_version.bal +++ b/ballerina-tests/zipkin-server-tests/tests/get_http_version.bal @@ -1,6 +1,22 @@ +// Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com) All Rights Reserved. +// +// WSO2 LLC. licenses this file to you under the Apache License, +// Version 2.0 (the "License"); you may not use this file except +// in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + import ballerina/toml; -const string DEPENDENCIES_TOML_FILE = "../../ballerina/Dependencies.toml"; +const string DEPENDENCIES_TOML_FILE = "Dependencies.toml"; type DependenciesTomlData record {| ProjectDetails ballerina; @@ -11,6 +27,7 @@ type Package record {| string org; string name; string version; + string scope?; Dependency[] dependencies?; Module[] modules?; |}; diff --git a/ballerina-tests/zipkin-server-tests/tests/test.bal b/ballerina-tests/zipkin-server-tests/tests/test.bal index 1b2bec4..4d424e2 100644 --- a/ballerina-tests/zipkin-server-tests/tests/test.bal +++ b/ballerina-tests/zipkin-server-tests/tests/test.bal @@ -358,7 +358,7 @@ function testClientSpanTags() returns error? { test:assertTrue(containsTag("src.object.name", clientSpanTagKeys)); test:assertEquals(clientSpanTags["src.object.name"], "ballerina/http/Client"); test:assertTrue(containsTag("src.position", clientSpanTagKeys)); - test:assertEquals(clientSpanTags["src.position"], "tests/test.bal:124:17"); + test:assertEquals(clientSpanTags["src.position"], "tests/test.bal:125:17"); } @test:Config