Comments (6)
man prove
says this about arguments to tests:
It is possible to supply arguments to tests. To do so separate them from prove's own arguments with the arisdottle, '::'. For example
prove -v t/mytest.t :: --url http://example.com
would run t/mytest.t with the options '--url http://example.com'. When running multiple tests they will each receive the same arguments.
So you have to do it like prove :: -l
. This is something about prove
, not sharness.
The fact that prove counts SKIP
tests as success is an issue of prove.
That is to say, maybe it would be worth emphasizing the limitations of using prove together with sharness
This is a limitation of prove
, not prove+sharness
.
and possibly cover alternatives as well to help the user choose.
I started writing my own tool: rove, but it doesn't even report the number of successful tests, as I'm not interested in that. I'm mostly interested in knowing if all the tests pass or not.
from sharness.
So you have to do it like prove :: -l
Damned I had missed that from the prove
manpage (and it is not the place for discussing its structure ;) ).
This is something about prove, not sharness
This is a limitation of prove, not prove+sharness.
Sure, but still it could be useful to let users know that the Makefile
driver is better than prove
on this point -- as well as an example of passing options for tests. If you don't object can propose a PR.
from sharness.
Sure, but still it could be useful to let users know that the Makefile driver is better than prove on this point
"better" is a subjective value judgement, for me prove
works perfectly fine.
If you don't object can propose a PR.
But a PR to change what? The README
is supposed to be short and to the point. This information seems like it belongs to a wiki page.
from sharness.
But a PR to change what? The README is supposed to be short and to the point.
I'd think it could be helpful to add a short note to "Command-line options" about that peculiar prove test :: flags
syntax.
from sharness.
OK. I changed my mind.
I wanted to keep the README
as simple as possible as the previous maintainer intended. But to be honest I think sharness should interact seamlessly with testing harnesses, and prove
is the most popular (or even the only truly known one) testing harness.
So I think a short explanation of how to use sharness with prove
in the README
could make sense.
Feel free to send a pull request for that.
from sharness.
The README
already mentions prove
, I've added a page in the wiki with more details about how to use it: Prove.
I think that should be enough.
from sharness.
Related Issues (20)
- make test fails with unliked SHELL_PATH HOT 9
- add --tee option from git test-lib.sh HOT 1
- sharness.sh is executable? HOT 3
- Release tarballs are not signed HOT 4
- Clarify purpose of "aggregate-results.sh" HOT 12
- Cleanup actions are only run if no tests failed HOT 8
- Additional test function for string comparison? HOT 5
- Document usage of "trash" directory HOT 2
- Document how to release a new Sharness version HOT 2
- Line feed regression HOT 3
- Lots of dangling branches HOT 2
- SHARNESS_TEST_SRCDIR and extensions HOT 3
- Sharness self-test fails HOT 2
- Can't locate object method "follower" via package "IO::Pty"
- test_expect_failure test 2 = 2 does not fail with prove HOT 4
- trash dir as home dir when run on Windows HOT 1
- testing scripts with sourced functions HOT 1
- Make a release v1.2 HOT 1
- Calling functions from Git submodule fails with v1.2.0 release (Regression) HOT 8
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 sharness.