This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 887
Allow --test against a glob pattern of directories #2064
Closed
Comments
You can use tslint CLI to test a specific rule. See |
@mohsen1 yes, that's what I'm doing now. I'd like to sporadically run |
To be a little more elaborate - C:\Code\tslint>tslint --test test/rules/no-floating-promises/**
C:\Code\tslint\lib\configuration.js:114
throw new Error("Could not find config file at: " + path.resolve(suppliedConfigFilePath));
^
Error: Could not find config file at: C:\Code\tslint\test\rules\no-floating-promises\**\tslint.json It would be nice to have a little more control and be able to test multiple directories. Perhaps letting |
I have a slight preference for |
JoshuaKGoldberg
changed the title
Option to run only specific rules tests?
Allow --test against a glob pattern of directories
Jan 19, 2017
That makes sense, they're basically the same. Updated the title. |
6 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Instead of
yarn test:rules
to run them all, or manually modifyingruleTestRunner.js
to change what's running, it'd be nice to quickly runyarn test:rules -- no-floating-promises/*
.It could be done pretty easily in
ruleTestRunner.ts
with:The text was updated successfully, but these errors were encountered: