Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/395.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 这是什么类型的单元测试?_Javascript_Typescript_Unit Testing_Web Frontend - Fatal编程技术网

Javascript 这是什么类型的单元测试?

Javascript 这是什么类型的单元测试?,javascript,typescript,unit-testing,web-frontend,Javascript,Typescript,Unit Testing,Web Frontend,尽管我可能会尝试,但我记不起这种类型测试的名称,因此我很难找到我正在寻找的库 The test runner randomly changes variable values and if-block execution, and if your existing tests still pass, then a warning/failure is displayed. 注意,我不是在说猴子测试。该库不会对代码使用随机输入,而是更改代码,以确保在代码中断时测试变为红色。另一方面,如果所有测试

尽管我可能会尝试,但我记不起这种类型测试的名称,因此我很难找到我正在寻找的库

The test runner randomly changes variable values and if-block execution, and if your existing tests still pass, then a warning/failure is displayed.
注意,我不是在说猴子测试。该库不会对代码使用随机输入,而是更改代码,以确保在代码中断时测试变为红色。另一方面,如果所有测试都通过,则可能表明您的测试不充分。

这称为


测试运行者随机变异测试中的代码,并检查测试是否会捕获这些变异。虽然有很多工具可以做到这一点,但您可能会认为这似乎是最流行的JavaScript解决方案。

您正在搜索FSM类型的单元测试吗?是的,就是这样!你和雅各布都是超级英雄!!你打对号是因为史崔克是我要找的人。万分感谢你们两位@DonVaughn我通过维基百科关于测试覆盖率的文章找到了它