summaryrefslogtreecommitdiff
path: root/test/javascript/cli_runner.js
Commit message (Collapse)AuthorAgeFilesLines
* Clear a line before printing JS test errorsPaul J. Davis2014-02-061-1/+1
|
* Reload the configuration for each testsPaul J. Davis2014-02-061-0/+1
| | | | I accidentally lost this in a rebase or merge somewhere.
* Initial implementation of a new JS test runnerPaul J. Davis2014-02-061-2/+3
| | | | | | 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.
* Don't stop running tests on the first failurePaul J. Davis2014-02-051-1/+0
|
* Import JavaScript test runner changesPaul J. Davis2014-02-051-62/+23
| | | | | This is the basis for some temporary work to be able to run the JavaScript test suite as during the merge transition.
* Add a config:reload/0 and HTTP triggerPaul J. Davis2013-03-201-0/+1
| | | | | | | | | | | 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.
* Improve the CLI JavaScript stack formatingPaul Joseph Davis2012-04-251-5/+31
| | | | | | | | | | 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.
* Propogate failures from JS CLI tests to exit codesRandall Leeds2012-01-261-1/+8
| | | | | Assert that all tests pass and save the error code from the couchjs invocation. Make check will actually fail when JS CLI tests fail.
* print JS CLI test tracebacks to stderrRandall Leeds2012-01-261-3/+3
| | | | | | | | 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.
* COUCHDB-111 and COUCHDB-1389 JS Error TracebacksRandall Leeds2012-01-261-10/+9
| | | | | | | | | | | | | | | | | | | | | | | 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
* improve the startup delay for js test harnessRandall Leeds2012-01-071-0/+1
| | | | | | | 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.
* Setup JavaScript command line runner.Paul Joseph Davis2009-11-261-0/+52
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