-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase dtslint test coverage #4093
Labels
help wanted
Issues we wouldn't mind assistance with.
Comments
This was referenced Sep 5, 2018
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Sep 15, 2018
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Sep 15, 2018
This was referenced Sep 15, 2018
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Sep 16, 2018
This was referenced Sep 16, 2018
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Sep 16, 2018
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Sep 18, 2018
cartant
pushed a commit
that referenced
this issue
Sep 18, 2018
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Sep 18, 2018
benlesh
pushed a commit
that referenced
this issue
Jan 22, 2019
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Jan 27, 2019
cartant
pushed a commit
that referenced
this issue
Jan 27, 2019
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Jan 29, 2019
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Jan 29, 2019
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Jan 29, 2019
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Jan 29, 2019
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Jan 29, 2019
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Jan 29, 2019
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Jan 29, 2019
benlesh
pushed a commit
that referenced
this issue
Jan 30, 2019
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Jan 30, 2019
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Jan 30, 2019
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Feb 28, 2019
benlesh
pushed a commit
that referenced
this issue
Aug 1, 2019
benlesh
pushed a commit
that referenced
this issue
Aug 1, 2019
dkosasih
added a commit
to dkosasih/rxjs
that referenced
this issue
Aug 2, 2019
dkosasih
pushed a commit
to dkosasih/rxjs
that referenced
this issue
Aug 2, 2019
cartant
pushed a commit
to cartant/rxjs
that referenced
this issue
Dec 5, 2019
Guess this is good to close? @cartant |
Yep. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Chore
#3944 added
dtslint
to the Travis$FULL_VALIDATE
configuration. However, the coverage of the codebase is far from complete.PRs that contribute to increasing the coverage are welcome.
The purpose of the
dtslint
tests is to ensure that the types are inferred as expected and to ensure that type errors are effected for invalid types. At the moment, there are sometype
tests in the codebase. These are able to do the former, but not the latter - as type errors would break the build.For an example of the
type
tests, see these for thezip
observable and these for thezip
operator. Thetype
tests are not executed when the tests run. Rather, they're tested when the tests are built. And if the tests build, thetype
tests have passed. Not all operators and operators havetype
tests. In fact, many don't.The
dtslint
tests reside in thespec-dtslint
directory. They are written as Mocha-styleit
tests, but they are not run. Instead, TSLint runs rules that test the inferred types against expectations that are expression in comments. For example:You can find the
type
tests that have been converted todtslint
tests for thezip
observable here and for thezip
operator here.Apart from converting the
type
tests, we want to ensure that there aredtslint
tests for each overload signature for each observable and operator.Submitting separate PRs - each with one or only a few observables or operators - would be the best way to approach this, as PRs with a limited number of observables or operators should be straightforward to review.
Running the tests
The tests will run on the Travis CI build, but you can run them locally using the
dtslint
script:However, doing so will see
dtslint
run vianpx
, which means it will be downloaded each time the script runs. This is very slow, as it also downloads several versions of TypeScript.If you are going to run
dtslint
locally, you might want to install it globally and then run the tests using:Additional context
The text was updated successfully, but these errors were encountered: