LaTeX-Workshop/test/README.md
Takashi Tamura 88b808da22 Fix typo.
2020-08-20 15:11:33 +09:00

1.0 KiB

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.