tslint-specs
v0.0.2
Published
Typescript linting rules for IVD projects
Downloads
5
Readme
TSLint Validation Tests
Overview
This project contains tests for validating TSLint rules specified in the Iris Typescript Coding Guidelines. Although there are many TSLint and Codelyzer rules covered in the test suite only the rules deemed to be critical in the coding guidelines are tested.
Each test is written as a gherkin specification with a typescript code snippet that exercises the appropriate linting rule. The code snippet is used to generate a typescript file which is then validated via TSLint. The test runner then parses the output from TSlint to confirm the correct error has been raised at the correct line of code.
Performance
Currently each test takes ~1 sec to run, this is due to the test runner capturing data from stdoutput. Further work is needed into batching up tests into a single linting operation to improve performance.