LaTeX-Workshop/test
2021-02-26 16:59:10 +01:00
..
fixtures Add rootfile detection tests 2021-02-26 16:59:10 +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 Enable @typescript-eslint/return-await 2020-12-19 08:51:03 +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 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
rootfile.index.ts Add rootfile detection tests 2021-02-26 16:59:10 +01:00
rootfile.test.ts Add rootfile detection tests 2021-02-26 16:59:10 +01:00
runTest.ts Add rootfile detection tests 2021-02-26 16:59:10 +01: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 Version 8.16.0 2021-02-19 17:23:00 +08: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.