UnkindPartition / tasty

Modern and extensible testing framework for Haskell
637 stars 108 forks source link

Release tasty-1.5.1, tasty-quickcheck-0.11, tasty-hunit-0.10.2 #420

Closed Bodigrim closed 1 month ago

Bodigrim commented 1 month ago

Released:

Bodigrim commented 1 month ago

Apparently changes to cursor manipulations broke things:

All
  read:          OK8  ms ±  23 ms
    278  ms ±  23 ms
  write:         OK0  ms ±  38 ms
    900  ms ±  38 ms
  index build:   OK1  ms ±  15 ms
    521  ms ±  15 ms
  index rebuild: OK0  ms ± 7.5 ms
    110  ms ± 7.5 ms

I revised tasty-1.5.1 to decomission it for time being: https://hackage.haskell.org/package/tasty-1.5.1/revisions/

Bodigrim commented 1 month ago

Apparently reverting b152a0bc63166a4592e1f3639ef09e78a43f2b57 is enough to restore proper behavior.

sergv commented 3 weeks ago

@Bodigrim Looks like reverting https://github.com/UnkindPartition/tasty/commit/b152a0bc63166a4592e1f3639ef09e78a43f2b57 is the way to go: issuing \r clears part of line between first column and current cursor, but keeps content after cursor unchanged.

Because of printed progress message there may be text after cursor position which will not get cleared in ANSI-compliant terminals. Emacs seems to be not compliant and clears whole line when it sees \r so reverting the commit would not interfere with original intention.