node-mocha-docker-postgres:Postgres集成测试的测试助手

时间:2021-05-16 10:24:08
【文件属性】:
文件名称:node-mocha-docker-postgres:Postgres集成测试的测试助手
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-16 10:24:08
JavaScript 摩卡泊坞窗Postgres mocha testhelper用于使用docker与postgres进行集成测试。 用法: 确保已安装Docker并已将postgres docker映像拉出。 例如docker pull postgres require ( 'mocha-docker-postgres' ) ; // will patch the mocha Context prototype var someModule = require ( '../someModule' ) ; describe ( 'some module' , function ( ) { var instanceOfSomeModule ; before ( function ( ) { this . timeout ( 10000 ) ; // you may nee
【文件预览】:
node-mocha-docker-postgres-master
----isolated-tests()
--------willReuseContainer.js(3KB)
--------willCleanUp.js(1KB)
----.gitignore(13B)
----package.json(820B)
----Makefile(140B)
----.travis.yml(128B)
----LICENSE(1KB)
----index.js(5KB)
----README.md(2KB)
----lib()
--------PostgresContainer.js(5KB)
--------executeSql.js(464B)
----test()
--------willCleanUpAfterRunningTests.sh(819B)
--------willReuseTheSameContainerAcrossTests.sh(841B)
--------mocha.opts(55B)
--------lib()
--------index.spec.js(2KB)
--------polyfill.js(93B)

网友评论