docs icon indicating copy to clipboard operation
docs copied to clipboard

HOWTO: Train on Python kata locally

Open hobovsky opened this issue 4 years ago • 2 comments

Show how to set up local environment to create Python kata or train on them.

hobovsky avatar Dec 30 '20 13:12 hobovsky

AFA running tests locally, is there a way to easily convert this to something more... meaningful to the user? image Or should I just say don't pay attention to these <X::> things?

Steffan153 avatar Dec 31 '20 03:12 Steffan153

There's no built-in way to make nice output for languages using a custom test framework.

You can somewhat improve it by piping it to sed or something similar:

$ run-tests | sed 's/^<\(DESCRIBE\|COMPLETEDIN\)::>//;s/^<IT::>/  /;s/^<\(PASSED\|FAILED\|ERROR\)::>/    /'

should make that

Hi
  Hi
    Test Passed
    1 should equal 2
0.07
0.18

Or write some script to do more fancy stuff.

kazk avatar Dec 31 '20 04:12 kazk