blob: ffe85de18eb31d71737001de62342324af2a35c6 [file] [log] [blame] [view]
David Neto750120f2023-09-19 21:15:38 +00001# Testing Tint
2
3Tint has multiple levels of testing:
4
5* Unit tests, using the Googletest framework. These are the lowest level tests,
6 comprehensively checking functionality of internal functions and classes.
7 The test code is inside the Tint source tree in files with names ending in
8 `_test.cc`
9* End-to-end tests. These test the whole compiler flow, translating source
10 shaders to output shaders in various languages, and optionally checking
Jiawei Shaob9feb092024-01-10 11:19:09 +000011 the text of diagnostics. See [Tint end-to-end tests](end-to-end-tests.md).
David Neto750120f2023-09-19 21:15:38 +000012* WebGPU Conformance Test Suite (CTS). The WebGPU CTS has both validation and
13 execution tests, in the `webgpu:shader` hierarchy.
14 See https://github.com/gpuweb/cts
15 All test can be run in Chrome, and many tests can be run via `dawn.node`,
16 the [Dawn bindings for NodeJS](../../src/dawn/node/README.md).