Commit Graph

6 Commits

Author SHA1 Message Date
Ingo Schommer
72b48f4c38 API State setting within session, make tmpdb optional
- Allow limited state setting when session is already in progress
- Allow test sessions without a test database
- Denote an “in progress” session through a “testsession.started” session flag rather than the usage of a temporary database
2013-12-10 19:34:37 +01:00
Ingo Schommer
c901abe83c Better default styles, made form extensible 2013-12-10 19:34:35 +01:00
Ingo Schommer
dbe10da069 Hide testing state by default to avoid perceptual diffs
The perceptual diff extension in Behat defaults to taking
a screenshot of every browser step, including the
"started testsession" one. A simple way to avoid this view
changing is hiding the variable state behind a click event.
The state info is mostly used for manual testing via
dev/tests/startsession anyway.
2013-11-07 12:25:29 +01:00
Sam Minnee
89d6b036b4 NEW: Add status code comment to testsession/start output.
testsession/start now includes a comment of the form <!-- SUCCESS: DBNAME=DatabaseName -->,
which can be used by behat and other consumers to validate that the tesession was actually
started.

It's included the database name in its output, which is a small piece of information
disclosure, but not a big deal compared to the generally dev-only nature of this module.

It requires a fix to Cookie::set(), to ensure that set cookies also apperar immediately
in $_COOKIE.  Otherwise the call to DB::get_alternative_database_name() after it is set
won't return a value.
2013-06-07 11:22:18 +12:00
Ingo Schommer
fe7a28266c 3.1 compat 2013-04-09 01:58:10 +02:00
Ingo Schommer
a2d7675e57 API Combined "setdb" into "start". Renamed "emptydb" to "clear". Added "set".
Using templates, listing state in them.
2012-12-19 15:45:52 +01:00