[erlang-questions] common_test usability enhancement
Thu Jan 24 03:24:37 CET 2013
I've been using ct a lot recently and would like to be able to see the same behaviour.
Removing the time stamp from latest results would save a lot of navigation & reloads.
Another issue is configuring 'total coverage' reports & merging ct with eunit reports. The incantations are not obvious...
If the default URLs represented 'latest' and the timestamped URLs were preserved, wouldn't that be ideal?
On 24 Jan 2013, at 02:21, Loïc Hoguin <> wrote:
> I've been wondering how to have a common url for repeated ct tests. For example if I'm fixing a few things I'd like to just refresh the browser to see how far I got. Problem is timestamps prevent that.
> Instead of this URL:
> I want something like this:
> I started fixing the first part with a naive enough patch as follow:
> diff --git a/lib/common_test/src/ct_logs.erl b/lib/common_test/src/ct_logs.erl
> index 0b7a8bb..95e85c5 100644
> --- a/lib/common_test/src/ct_logs.erl
> +++ b/lib/common_test/src/ct_logs.erl
> @@ -536,6 +536,11 @@ logger(Parent, Mode, Verbosity) ->
> AbsDir = ?abs(Dir),
> put(ct_run_dir, AbsDir),
> + %% create a symlink always pointing to the last run
> + New = "last-" ++ atom_to_list(node()),
> + _ = file:delete(New),
> + _ = file:make_symlink(Dir, New),
> case basic_html() of
> true ->
> put(basic_html, true);
> I think it could be accepted into OTP easily, but this only fixes half the problem. The other part is harder.
> I'd very much like to receive guidance on how to achieve my goal and have it be good enough to be included in OTP. Perhaps it'd require an option to disable the timestamp in the second part of the URL? I don't know. Any pointers would help.
> Loïc Hoguin
> Erlang Cowboy
> Nine Nines
> erlang-questions mailing list
More information about the erlang-questions