vim-iced icon indicating copy to clipboard operation
vim-iced copied to clipboard

IcedTestNs, IcedTestAll need manual require but IcedTestUnderCursor doesn't

Open Cnly opened this issue 5 years ago • 1 comments

Let's say I'm working on a deftest form. After editing, if I run IcedTestUnderCursor immediately, the latest test code will be executed.

However, if I instead run IcedTestNs or IcedTestAll, vim-iced will run the old test code loaded when I previously ran IcedRequire. In other words, I need to manually IcedRequire in order to make IcedTestNs and IcedTestAll use the latest code.

I'm not sure if this is a bug or a feature, but from my view it's an inconsistent behaviour. Anyway, thanks for the great tool :)

Cnly avatar Nov 28 '20 11:11 Cnly

@Cnly Thanks for your reporting!

IcedTestUnderCursor evaluates the form under the cursor to identify the var for testing, thus it leads testing the latest code. On the other hand, the ns name is not evaluated at present because it can be extracted without evaluation.

However, it is certain that the behavior is inconsistent, so I'll consider how to deal with it. (There are also IcedTestRedo and IcedTestRerunLast)

liquidz avatar Nov 28 '20 22:11 liquidz