Comments (11)
Are tests not run in order now? The flag --sort-tests
already defaults to off, and currently we have no parallelization, all all tests are done one at a time in order. Is --no-keep-going
what you are looking for? Skipping can be handled by tagging related tests with the same tag to skip.
All this isn't to say we can't consider adding such a feature, but without having threading in the first place it seems like kind of a moot point, no?
from busted.
@alerque The idea is that this context keeps its order even when we set --sort-tests
or --shuffle
to true, and persists in its behavior when --keep-going
is true. After all, we see more clear intentions with explicit statements.
from busted.
And no, it's not the same to use --no-keep-going
. I want it to skip its siblings but not other subsequent tests.
from busted.
Is it possible to achieve your dependency situation by nesting existing blocks?
from busted.
@alerque No given what I read in the doc.
from busted.
How would this work if one selects only a single test from a list of steps, using a --tag
for example? something to cater for or would that be a user error? (and should it be called out as such?)
from busted.
@Tieske It should be a user error I guess? Or simply make it skipped due to the dependency?
from busted.
I would imagine the "test" unit that would be skipped / tagged would be whatever is above the steps, not the steps themselves.
from busted.
I probably won't be able to work on this any time soon, but I would try to facilitate a PR is somebody else did.
from busted.
@StarlightIbuki busted has been modeled after some other frameworks, how was this case handled there? That might give some pointers as to how to solve it.
(this case is quite fundamental to how Busted works, hence asking)
from busted.
@StarlightIbuki busted has been modeled after some other frameworks, how was this case handled there? That might give some pointers as to how to solve it.
(this case is quite fundamental to how Busted works, hence asking)
Hmmm. Good point. I did not think much before. I remember some of the frameworks make some assertions grouped as a "test point", which needs to be all passed to count for one success test point, and they are just a part of the test flow.
Some of the test frameworks explicitly claim the dependency of a test (like with the notation "@depend.before(test1)").
And for some of the frameworks, this is simply not considered. I guess we have some freedom on how to do it.
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
- 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.