TesTcl icon indicating copy to clipboard operation
TesTcl copied to clipboard

linting of the test files?

Open ernst-at-tv2 opened this issue 5 years ago • 1 comments

Are there any plans to implement linting of the test files?

sort of like:

  • every it "should" {} block should contain a run command
  • every it "should" {} block should contain at least one of either verify or endstate
  • every file should end with stats (to exit with the correct error code)

ernst-at-tv2 avatar Apr 05 '19 07:04 ernst-at-tv2

no, not really.

It would be better to solve this avoiding this altogether, by adding some kind of required meta "boiler plate"/setup style code. That will break the API, but it would probably be no big deal for users of the framework to adapt.

fre. 5. apr. 2019 kl. 09:41 skrev ernst-at-tv2 [email protected]:

Are there any plans to implement linting of the test files?

sort of like:

  • every it "should" {} block should contain a run command
  • every it "should" {} block should contain at least one of either verify or endstate
  • every file should end with stats (to exit with the correct error code)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/landro/TesTcl/issues/59, or mute the thread https://github.com/notifications/unsubscribe-auth/AACyydaWgvd6aTEIMcFB1KYxJIhGReHLks5vdv4ugaJpZM4ceWD0 .

-- BEKK Open http://open.bekk.no

TesTcl - a unit test framework for iRules http://testcl.com

landro avatar Apr 08 '19 16:04 landro