erlang / otp

Erlang/OTP
http://erlang.org
Apache License 2.0
11.44k stars 2.96k forks source link

ERL-1270: Common Test -step option oddities #3293

Open OTP-Maintainer opened 4 years ago

OTP-Maintainer commented 4 years ago

Original reporter: essen Affected version: OTP-23.0 Component: common_test Migrated from: https://bugs.erlang.org/browse/ERL-1270


Hello, we have been trying to make the -step option work when used via ct_run via Erlang.mk. The option seems to enable things, because we do get a debugger window open if we set a breakpoint manually inside the test case (using, for example, i:ib(?MODULE, ?LINE + 1)).

From our understanding the -step option should automatically add breakpoints to the beginning of all test case functions.

Using "-step config" properly enables breakpoints on the init_* and end_* functions. But still nothing on the test cases.

I've been trying against this test suite personally: https://github.com/ninenines/cowboy/blob/master/test/rfc7230_SUITE.erl

I've added -step to the CT_OPTS line in the Makefile and ran "make ct-rfc7230 t=http:accept_at_least_1_empty_line".
OTP-Maintainer commented 4 years ago

ingela said:

We have not set any priority for this yet. We think that it likely has worked and become broken. If you have the possibility to help us check when it might have become broken it could speed up the handling.
OTP-Maintainer commented 4 years ago

ingela said:

It was concluded this is not considered an important feature, and that it might be consider for removal as it seems broken. Unless someone is interested in fixing it. We will leave it at that for now.
OTP-Maintainer commented 4 years ago

essen said:

This is low priority for us too. We will keep it in the back of our mind should time and motivation become available, but otherwise we are OK with it being removed as well.