| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
I accidentally lost this in a rebase or merge somewhere.
|
| |
|
|
|
|
| |
This fits into the dev/run format for allowing tests to run with an
available cluster. For now the JS tests only run against the backdoor
port.
|
| | |
|
| |
|
|
|
| |
This is the basis for some temporary work to be able to run the
JavaScript test suite as during the merge transition.
|
| |
|
|
|
|
|
|
|
|
|
| |
Theoretically this should prevent all of those annoying test suite
failures when a test fails in with a temporary config set and fails to
undo its changes.
This works by storing the list of INI files in the config server and on
command will clear its ets table and re-read data from disk thus
clearing its cache of non-persisted values. Obviously this isn't
something that should be relied on in production settings.
|
| |
|
|
|
|
|
|
|
|
| |
This dresses up the output of the JavaScript tests by making sure the
output is sane. Most of the issue was that the tracebak prints function
arguments which can include the entire source of the test.
This also tries to print the source file and line number nicely so that
we can find right where errors have occurred. Its proven quite useful
while fixing JavaScript tests.
|
| |
|
|
|
| |
Assert that all tests pass and save the error code from the couchjs
invocation. Make check will actually fail when JS CLI tests fail.
|
| |
|
|
|
|
|
|
| |
Nothing in couchjs assumes that multiple arguments to the couchjs
`print` function is sensible. The call signature changes to take an
optional second parameter - a true value prints to stderr.
From this point forward, console.log in the JS CLI prints to stderr.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
couchjs:
- report stacktraces on exceptions using JS_ReportError
- responds with a trace and message on errors when possible
- propogate Error-like objects from validate_doc_update to the loop
- make Error-like object play nicely with couch_os_process
couch.js:
- transform HTTP error response bodies into an Error instance to
capture stack information
cli tests:
- print a stacktrace for individual test failures when running the suite
Fix COUCHDB-111
Fix COUCHDB-1389
|
| |
|
|
|
|
|
| |
Change waitForSuccess to catch errors in the sync request that's used
to hand control back to the JS engine. Then, use waitForSuccess to
see if CouchDB has started and remove the 1 second sleep before the
tests start.
|
|
|
All JS tests can now be run from the command line using the cURL
adapter. In the future I would like to rework this and provide better
TAP output. For now, each test is a single TAP assert.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884675 13f79535-47bb-0310-9956-ffa450edef68
|