LaTeX-Workshop/test
2021-07-11 22:28:15 +02:00
..
fixtures Add test for infinite loop when parsing 2021-07-11 22:28:15 +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 Enable @typescript-eslint/no-floating-promises. 2021-05-27 11:42:24 +09: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 Enable @typescript-eslint/no-floating-promises. 2021-05-27 11:42:24 +09:00
README.md Fix typo. 2020-08-20 15:11:33 +09:00
rootfile.index.ts Add rootfile detection tests 2021-02-26 16:59:10 +01:00
rootfile.test.ts Add test for infinite loop when parsing 2021-07-11 22:28:15 +02:00
runTest.ts Enable @typescript-eslint/no-floating-promises. 2021-05-27 11:42: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 Enable ESLint rules: 2021-04-16 09:34:16 +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 Enable @typescript-eslint/no-floating-promises. 2021-05-27 11:42: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.