Comments (2)
Recently we wanted to conveniently enable debug out of the full output of run commands in tests. We did not find a really satisfying solution, but stumpled upon this issue immediately. So adding for all the lost souls with the same problem:
We worked around it by adding some debug code to the teardown() { } function, which has all necessary variables in scope.
from bats.
Bats will now tell you the test filename and line number that triggers the failure: bc72b85
from bats.
Related Issues (20)
- Helpful test script HOT 2
- BATS libexec dir on install HOT 1
- Current release is out of date HOT 1
- automatically sourcing setup/teardown scripts? HOT 1
- How to use for & do loop based on if else condition.
- Support for JUNIT formatted output?
- Use bats-core HOT 1
- avoid `eval echo` with `encode_name` HOT 1
- Trying to test a curl request to an HTTP server using BATS. But as soon as it hits the run ./server it does not proceeds towards curl. This is because http server repeatedly listens for incoming requests. Any Ideas how can I tell BATS to go the next instruction (here curl) after it runs the server? HOT 1
- Update README to make it more clear we should be using bats-core HOT 3
- Sorry for the stupid question HOT 1
- Noskip option flag HOT 2
- `$cmd & echo foo | cat` freezes bats because pipe waits for backgrounded command to die HOT 3
- Document method for safely printing 'set -x' output in TAP mode HOT 1
- Show Why Tests Have Failed HOT 1
- Add bats_teardown_trap to existing EXIT trap instead of overwriting. HOT 1
- Is this project dead? Last commit over four years ago. HOT 2
- --formatter not recognized format
- Provide Link To Bats-Core HOT 3
- publish bats on https://open-vsx.org/
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 bats.