Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Included the answer text supplied to a fossil command when provided to fossil_maybe_answer in a call to protOut. This makes debugging tests using fossil http and a GET or POST to /json easier. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | rberteig-json-test |
Files: | files | file ages | folders |
SHA1: |
f34014308039bdd82caf0015ce44d27e |
User & Date: | rberteig 2016-01-29 23:26:53.877 |
Context
2016-01-29
| ||
23:40 | Add cookie support to fossil_http_json, as well as extra args passed through to fossil_maybe_answer so -expectError can be used. Tweak some comments. Note doc revision eliminating /json/timeline/ci, which clears a previous knownBug. Cache a usable login cookie for both anonymous and user U1 for later use. ... (check-in: a9edb60a user: rberteig tags: rberteig-json-test) | |
23:26 | Included the answer text supplied to a fossil command when provided to fossil_maybe_answer in a call to protOut. This makes debugging tests using fossil http and a GET or POST to /json easier. ... (check-in: f3401430 user: rberteig tags: rberteig-json-test) | |
02:37 | Added more coverage of /json, leaving /json/login, /json/diff, and /json/user/save uncovered, and finding surprises with /json/wiki/diff, /json/timeline/ci, and /json/tag/cancel. All implemented coverage is of the best documented and easiest tested paths through each feature. Tests for edge cases and failure paths are not yet in place, nor are complete tests for full expected values in most cases. ... (check-in: c2c49b35 user: rberteig tags: rberteig-json-test) | |
Changes
Changes to test/tester.tcl.
︙ | ︙ | |||
131 132 133 134 135 136 137 138 139 140 141 142 143 144 | foreach a $args { lappend cmd $a } protOut $cmd flush stdout if {[string length $answer] > 0} { set prompt_file [file join $::tempPath fossil_prompt_answer] write_file $prompt_file $answer\n set rc [catch {eval exec $cmd <$prompt_file} result] file delete $prompt_file } else { set rc [catch {eval exec $cmd} result] } | > | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | foreach a $args { lappend cmd $a } protOut $cmd flush stdout if {[string length $answer] > 0} { protOut $answer set prompt_file [file join $::tempPath fossil_prompt_answer] write_file $prompt_file $answer\n set rc [catch {eval exec $cmd <$prompt_file} result] file delete $prompt_file } else { set rc [catch {eval exec $cmd} result] } |
︙ | ︙ |