1

TypeScript comes with the full source code and unit tests.

How do I run these tests? Or is it only by building the whole thing?

1 Answer 1

2

On Windows (preferably a VS2012 or 2010 command prompt, or with suitable stuff on the PATH), run:

nmake runtests

You'll need to have the TYPESCRIPT_HOST environment variable set to node (with node.js installed). Alternatively, nmake runtests HOST=node.

You can also run a subset of tests:

nmake runtests tests=tests\compiler\someVariousTest.ts

There's also a smaller subset for compiler-only tests:

nmake runtests-compiler

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.