Fork me on GitHub
#calva
<
2020-04-29
>
slawek09809:04:13

Have you managed to get any test output diffing in Calva?

pez10:04:45

@slawek098 I'm not following. Can you describe a bit more?

slawek09810:04:31

Like, when running tests with Calva, i got this huge chunk of “got {:some huge map}, expected {:something is different here}”

slawek09810:04:53

I am looking for some kind of humane test output.

slawek09810:04:08

But humane test output says it should not be used in IDEs

hindol.adhya12:04:07

I have also noticed that rainbow parens gives colors to adjacent tokens. Is that intended?

slawek09812:04:33

when running tests manually via (my-test-name), it shows diff - but when running test from Calva wia “Run current test”, it does not.

pez13:04:20

Not even in the Problems panel?

pez13:04:34

@hindol.adhya, yes, it is intended. They are considered part of the form. So if you move forward/backward a form, the cursor moves past the whole thing with the same color. (If that makes sense.)

hindol.adhya13:04:09

Do people move { and } often? I find it breaks formatting in the intermediate step where there are odd numbers of tokens in the map and also the cursor jumps to a random place.

hindol.adhya13:04:36

By move, I mean slurp and barf.

pez14:04:53

Sounds like a bug with the cursor.

pez14:04:14

I slurp and barf all the time. Don't know about people, though.

hindol.adhya14:04:18

I do slurp and barf a lot. Just not with map literals. I feel the behavior is broken with map literals.

pez16:04:29

Is this related to the original question? (Just checking, I don’t see how they are related...)

hindol.adhya16:04:19

No, not related. Since I am using Calva a lot, I keep noticing things that can make my life better. Calva is great by the way! These are just minor things.

pez16:04:55

Please keep noticing. I'm not taking it as you do not like Calva. 😃 And I really like to know where it can improve.

slawek09813:04:49

@pez only “expected” and “got”

slawek09813:04:52

@pez no “diff”

pez13:04:51

That would be pretty nice for some errors, I agree. Possibly extra common with Clojure, which I think often is used for transformations.

slawek09813:04:29

But how does Calva generate this error message?

slawek09813:04:51

Because when I run test manually in REPL by it’s name, I’ve got diff from humane-test-output library.

pez13:04:28

Calva uses cider-nrepl for this.

brandon.ringe18:04:06

Hey Calva friends, v2.0.96 is out with added features to the debugger! Checkout out the announcements post for details and show Calva some love. calva