Comments (10)
Something isn't necessarily wrong - it's possible that someone made a placeholder file to fill out later.
from busted.
then still a warning is appropriate, becasue imho the placeholder should have had a 'pending' test. No warning might give the impression complete and done, which is not correct in that case.
from busted.
It is both complete and done, though; the only things that would be wrong would be you didn't write any tests (which shows 0 completions) or the test framework is bad (which we should have caught in busted core specs.)
We could update the terminal verbose output to show the files that have been loaded and run, and how many tests failed/succeeded/pended in each of them.
from busted.
I think showing files and the test from each would suffice
from busted.
I think we should show the number of pending tests, like we do now, if a test file is run that contains only pending tests. If no tests are found in a file, we should throw a warning.
We can optionally show extra information when verbose output is selected.
from busted.
We should not warn on empty describe blocks, however.
from busted.
@DorianGray +1
Using the verbose option sounds good, I ran into my issue when setting up a new project, and the output just didn't tell me everything I wanted to know to rest assured it simply worked.
So using verbose option should not only display detailed errors, but also version info, filenames and the options used for the test run (including the ones not provided and defaulted). Then once your new setup works, simply remove the verbose option.
from busted.
I had a thought this morning about using mediator_lua to do messages to output over a pub/sub pattern instead of function calls so that we have a ton of flexibility. We could fire events when we load a file, run a test, etc and let the output lib decide what it cares about and how to format it.
from busted.
Further, it would be nice if the stdout of the code under test could be separate from how the output formatters work. Both json and my own junit xml formatters will break badly if any code that is being tested includes a print() anywhere at all.
from busted.
closed, #144
from busted.
Related Issues (20)
- Can't install dependency of busted via luarocks HOT 1
- Can't install dependency 'mediator_lua' of busted via luarocks HOT 2
- Lua
- bad release HOT 1
- Can't install/run on Windows 10 HOT 3
- Garbled characters in output HOT 4
- Wrong `LUAROCKS_SYSCONFDIR` in `busted.bat` HOT 1
- `package.moonpath` is never updated which breaks Moonscript module requirements HOT 1
- [feature request] Support clean up function for it() HOT 4
- Async documented but not functional HOT 1
- [question] how to pass argument to function when trying to catch errors HOT 2
- [help needed] fails to execute as a standalone file HOT 2
- the comand line argument with space will be split when use --lua
- Fails to encode results to json due to non-string error objects being raised
- [Feature Request] Could we introduce a new context for ordered tests? HOT 11
- Make it easier to run a global before_each before all before_each blocks or a global after_each after all after_each blocks HOT 1
- Make it easier to run a global before_each before all before_each blocks or a global after_each after all after_each blocks HOT 1
- Fennel loader? HOT 2
- Bug? Loader applied to wrong language
- Teee 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 busted.