Comments (2)
from tarantino.
from #44:
test command:
docker run --rm -it \
-v "$PWD:/tt" -v "/var/run/docker.sock:/var/run/docker.sock:ro" -w=/tt \
darrenmce/tt-test-base \
sh -c "sudo make install && DEBUG=true bats test/tt_ip.bats; cat debug.log"
also dont forget to install submodules first
git submodule sync
git submodule update --init
bit of explanation here:
the docker command just runs the tests inside the procured image that has all the dependencies already installed, so you just mount your docker socket (so it can use your daemon for docker-based tests) and then
- install tt
- run the tests (with debug on)
- output the debug.log (useful for bats as stdout is captured, so using the debug helper functions to output to a log is the way to debug your tests)
the git submodules are for the following bats libraries
https://github.com/ztombol/bats-support
https://github.com/ztombol/bats-assert
note: they are only required for running the tests, not for tt
from tarantino.
Related Issues (19)
- Documentation: workspace plugins
- apply `ttvars` spike commit to master using "plugins" approach HOT 1
- feature: support auto-cloning of source control backed services HOT 4
- consider running md5 check on generated cache files HOT 2
- unable to remove workspace
- use the docker-compose config command to parse the yaml first before reading it for links and labels HOT 1
- feature: support short-hand way of specifying GitHub repository URLs HOT 1
- OSX support HOT 2
- revisit README
- Add confirmation on what installation will do HOT 1
- add better feed back on workspace commands HOT 1
- usage of declare HOT 1
- OSX coreutils support
- Support having plugins contribute to top-level `usage` information
- consider writing some tests in "bats"
- tt ip command fails on workspaces with underscores HOT 1
- add a `tt -v | --version` command HOT 2
- tarantino does not consider container_name setting for services HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tarantino.