LaTeX-Workshop/test
Takashi Tamura 7091faf2fe Edit JSDoc.
2020-07-04 14:41:52 +09:00
..
fixtures Update placeholders documentation 2020-04-06 10:32:30 +02:00
build.index.ts enable esModuleInterop in tsconfig.json, which is necessary to compile with the jimp package. 2020-05-02 19:22:34 +09:00
build.test.ts Update placeholders documentation 2020-04-06 10:32:30 +02:00
completion.index.ts enable esModuleInterop in tsconfig.json, which is necessary to compile with the jimp package. 2020-05-02 19:22:34 +09:00
completion.test.ts Add tests of completion. Export API only when CI. 2020-03-29 10:02:03 +09:00
README.md Edit JSDoc. 2020-07-04 14:41:52 +09:00
runTest.ts * Use VS Code 1.46.0 for tests. 2020-06-16 15:53:24 +09:00
texlive_linux.profile Add integration tests of building TeX files. 2020-03-04 20:56:34 +09:00
texlive_mac.profile Add integration tests of building TeX files. 2020-03-04 20:56:34 +09:00
texlive_windows.profile Add integration tests of building TeX files. 2020-03-04 20:56:34 +09:00
utils.ts * Use VS Code 1.46.0 for tests. 2020-06-16 15:53:24 +09:00
viewer.index.ts enable esModuleInterop in tsconfig.json, which is necessary to compile with the jimp package. 2020-05-02 19:22:34 +09:00
viewer.test.ts * Use VS Code 1.46.0 for tests. 2020-06-16 15:53:24 +09:00

Overview

Executing tests

We start a new VS Code instance each fixture directory in fixtures/build/ and others, and execute an appropriate test defined in build.test.ts while skipping other tests not related to the directory. Fot tests of building a LaTeX file, we try to build a LaTeX file in the directory. If a PDF file is not generated, the test fails. With this approach, we can debug the extension by opening a TeX file in the fixture directory if the test fails.

  • runTest.ts starts a new VS Code instance each fixture directory and executes *.index.ts.
  • *.index.ts runs all the tests defined in *.test.ts.
  • Tests in *.test.ts are executed through runTestWithFixture.
  • runTestWithFixture skip tests in *.test.ts if they are not related to the current fixture directory.