Comments (2)
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.
Related Issues (20)
- Easy execution of single test instead of entire test suite HOT 7
- should not exit from sourced script HOT 1
- breaks if /tmp is mounted noexec HOT 3
- no branches in svn/branches/source HOT 2
- assertSame() parameter checking error message is wrong HOT 1
- Korn shell errors in latest revision HOT 1
- Patch for /trunk/source/2.1/src/shunit2
- error checking weak in assertTrue HOT 1
- a plugin-based reporting mechanism for shunit2 HOT 3
- asserEquals failes in bash when "nullglob" is set HOT 1
- 3 Unittests for shunit2 fail on IBM AIX 6.1 HOT 1
- "stopSkipping" should be "endSkipping" HOT 1
- Add colored output HOT 4
- Do not pipe "oneTimeTearDown" HOT 2
- assertTrue does not work with "set -e" HOT 1
- _shunit_extractTestFunctions does not detect ksh style functions
- Display SKIPPED tests during execution
- Problems with shunit2 binary (installed via homebrew)
- Line Number Access Throws Error
- shUnit2 can't find sourced tests?
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.