LaTeX-Workshop/test
2020-10-31 20:25:08 +01:00
..
fixtures Fix tests with subfiles 2.0 2020-10-30 22:04:16 +01: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 No leading space allowed before #begin{document} when using subfiles 2020-10-31 20:25:08 +01: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 Fix typo. 2020-08-20 15:11:33 +09:00
runTest.ts - Extend timeout of tests of viewers on windows. 2020-08-17 19:26:42 +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 Fix waitLatexWorkshopActivated. 2020-10-12 09:22:45 +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, which includes a TeX file for tests, and execute an appropriate test defined in build.test.ts while skipping other tests not related to the directory. For 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.

How tests executed

  • 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.

Executing Tests on GitHub Actions

Read .github/workflows to see how tests are executed on GitHub Actions.