mirror of
https://github.com/github/codeql.git
synced 2026-01-05 10:40:21 +01:00
16 lines
357 B
Plaintext
16 lines
357 B
Plaintext
/**
|
|
* @name Number of tests
|
|
* @description The number of tests defined in a file.
|
|
* @kind treemap
|
|
* @treemap.warnOn lowValues
|
|
* @metricType file
|
|
* @metricAggregate avg sum max
|
|
* @id js/test-in-files
|
|
*/
|
|
|
|
import semmle.javascript.frameworks.Testing
|
|
|
|
from File f, int n
|
|
where n = strictcount(Test test | test.getFile() = f)
|
|
select f, n order by n desc
|