Comments (3)
Just a thought — would making the tests emit TAP[1] help? Then you could
plug in to
Perl's testing tools (e.g. prove[2]).
[1] http://en.wikipedia.org/wiki/Test_Anything_Protocol
[2] http://search.cpan.org/perldoc?prove
Original comment by [email protected]
on 17 Jun 2009 at 12:31
from shunit2.
I just did something possibly related to this. In shunit2,version 2.1.6, a
"standalone" mode was added. With this you can call shunit2 and pass a file
name. I extended that so you can give a *list* of test files. Totals are then
given for the *collection* of tests, and the totals include the number of
tests, the number of assertions, passed assertions, failed assertions and
skipped assertions.
One can still run each test individually. In fact if you look at how I wrote
the tests, you'll see how to write a test (in zsh, but bash and ksh can be done
similarly) so that it can be run either way: by invoking the test name or as an
argument to shunit in "standalone" mode.
See https://gist.github.com/973684 The project that has all of this is zshdb
https://github.com/rocky/zshdb/wiki
Original comment by rocky.bernstein
on 15 May 2011 at 11:54
Attachments:
from shunit2.
I've released my test_runner (https://github.com/kward/shlib/blob/master/standalone/test_runner) code as a standalone script, which should cover this need.
from shunit2.
Related Issues (20)
- call to [ not protected somewhere ERROR
- "Ran X tests." message is not accurate if a test exits
- fail fails to fail the test immediately HOT 4
- shunit2 Debian/Ubuntu packages out of date HOT 20
- Use https://bpkg.sh/ as package manager
- Warning "can only `return' from a function or sourced script" when executing in standalone mode (in Bash shell) HOT 1
- Should there be a counter for skipped tests in addition to the number of skipped asserts? HOT 5
- "[[: not found" error when sourcing files
- Test with bash in posix mode
- Next release ? HOT 4
- Mock and expect HOT 3
- Update version distributed through apt HOT 3
- [BASH] _SHUNIT_LINENO_ error if IFS is redefined HOT 4
- How to only execute specified test cases instead of all ? HOT 1
- What scenarios and how to use Error handling?
- Cannot source unit tests from unit tests HOT 1
- 执行单个案例,是否可以打印他的执行过程
- assertNotNull not working with set -e HOT 2
- egrep: warning: egrep is obsolescent; using grep -E HOT 5
- Add snapshot testing support
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 shunit2.