草庐IT

run_test

全部标签

/var/run/docker.sock: connect: permission denied

一、问题描述在jenkins进行CI/CD时,需要调用宿主机上的docker来制作镜像,此时jenkins任务输出框出现了如下错误:ERROR:permissiondeniedwhiletryingtoconnecttotheDockerdaemonsocketatunix:///var/run/docker.sock:Get"http://%2Fvar%2Frun%2Fdocker.sock/_ping":dialunix/var/run/docker.sock:connect:permissiondeniedBuildstep'Executeshell'markedbuildasfailu

mysql 安装问题 perl(JSON) is needed by mysql-community-test

 问题描述:[root@ebs-139266home]#rpm-ivhmysql-community-*.rpmwarning:mysql-community-client-5.7.42-1.el7.x86_64.rpm:HeaderV4RSA/SHA256Signature,keyID3a79bd29:NOKEYerror:Faileddependencies: perl(JSON)isneededbymysql-community-test-5.7.42-1.el7.x86_64[root@ebs-139266home]#yuminstallperl-JSONLoadedplugins:f

多种方法解决docker无权限问题 /var/run/docker.sock: connect: permission denied

问题:无权限使用docker命令报错信息[test@pri00~]$dockerpsGotpermissiondeniedwhiletryingtoconnecttotheDockerdaemonsocketatunix:///var/run/docker.sock:Get"http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json":dialunix/var/run/docker.sock:connect:permissiondenied如果着急可跳过中间分析过程,直接看总结命令可解决。分析根据报错信息(/var/run/docker.so

执行npm run dev报Error: error:0308010C:digital envelope routines::unsupported问题

vue2+element-ui项目,在执行npmrundev的时候突然报错:(node:19424)[DEP0111]DeprecationWarning:Accesstoprocess.binding('http_parser')isdeprecated.(Use`node--trace-deprecation...`toshowwherethewarningwascreated)    Error:error:0308010C:digitalenveloperoutines::unsupported仔细排查后发现是因为我Node.js版本太高我的版本是18.17.1,版本太高了。解决办法:

android.support.test.espresso.NoActivityResumedException : No activities in stage RESUMED

我正在尝试为我的Activity编写测试用例。我有几个Activity,其中一个没有问题,而当我尝试对其他ActivityTest类运行测试时出现以下错误。android.support.test.espresso.NoActivityResumedException:NoactivitiesinstageRESUMED.Didyouforgettolaunchtheactivity.(test.getActivity()orsimilar)?这是我所有测试用例都失败的类:@RunWith(AndroidJUnit4.class)@LargeTestpublicclassLocatin

spring boot项目 mvn test 和 mvn clean install 和 mvn test-compile 识别不到测试类无法运行单元测试

测试类使用了junit4,springboot版本的test框架自带的是junit5,不兼容。按照springboot对应的版本的junit框架,修改测试类,比如我就修改了junit5。按照:https://docs.spring.io/spring-boot/docs/2.6.3/reference/html/features.html#features.testing,强制使用junit4

android - 使用 Ant 构建项目并运行 JUnit Test Android 应用程序,但 Ant Junit 测试失败

我创建了一个简单的Android项目。我还为该项目创建了Junit案例。我在同一个项目中有我的Android应用程序和测试用例。我的结构如下:-AndroidApp-src-SampleActivity-tests-SampleActivityTest我已经更改了Order和export选项,并确保JUnit位于顶部。我已经添加了运行AndroidJUnit测试在Eclipse中运行良好,但是当我尝试使用Ant构建和Junit测试应用程序时,项目/应用程序构建但测试失败。这是错误:test-run:[junit]Testcom.mark.prototype.test.SampleAnd

运行yarn run serve出现错误‘vue-cli-service‘ 不是内部或外部命令,也不是可运行的程序

问题:Vue3项目运行yarnrunserve出现$vue-cli-serviceserve'vue-cli-service'不是内部或外部命令,也不是可运行的程序或批处理文件。errorCommandfailedwithexitcode1.infoVisithttps://yarnpkg.com/en/docs/cli/runfordocumentationaboutthiscommand.过程分析原因:返回的问题原因说了vue-cli-service插件的缺失执行不了serve的运行,但这个插件和项目中使用的yarn有关,那就是没安装项目依赖,执行yarninstall,在此之前有个前提,

安卓单元测试 : connectedAndroidTest does not execute my test case

我正在尝试向我的应用添加一些单元测试。我正在AndroidStudio中开发我的应用这是我做的。添加了一个新包在扩展TestCase的新包中创建了一个类在创建的类中添加了以下方法@SmallTest公共(public)无效基本测试(){assertEquals("abc","abc");}在build.gradle的defaultConfig部分添加了以下内容testApplicationId"newly.added.package.name"testInstrumentationRunner“android.test.InstrumentationTestRunner”在Androi

Android Test Orchestrator 和自定义应用程序类

我尝试了AndroidTestOrchestrator,如果更改了Application类,它看不到任何测试。非常容易重现。在AndroidStudio3预览版Beta6中使用向导创建简单的项目像这样创建自定义运行器:classCustomTestRunner:AndroidJUnitRunner(){overridefunnewApplication(cl:ClassLoader?,className:String?,context:Context?):Application{returnsuper.newApplication(cl,TestApplicationClass::cl