量角器 - 片状似乎重新运行所有测试,而不仅仅是失败的测试

时间:2017-06-22 10:52:21

标签: javascript typescript protractor

我正在使用“protractor-flake@2.5.1”版本并运行我的测试。在我的测试中,很少有测试失败,但它再次运行所有测试。 除了倾城报告,我没有使用任何自定义记者 下面是我以前运行的命令。

protractor-flake --max-attempts=2 --color=magenta -- config.js




Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
  System info: host: 'INBEN10174', ip: '157.237.220.180', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121'
  Driver info: org.openqa.selenium.chrome.ChromeDriver
  Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.29.461591 (62ebf098771772160f391d75e589dc567915b233), userDataDir=C:\Users\anuvrs\AppData\Local\Temp\scoped_dir10988_18536}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=58.0.3029.110, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=}]
  Session ID: c09e8a25628d5c3998434d31803f0aa8

Executed 2 of 8 specs (1 FAILED) (6 SKIPPED) in 2 mins 7 secs.
[13:05:04] I/launcher - 0 instance(s) of WebDriver still running
[13:05:04] I/launcher - chrome #01 failed 1 test(s)
[13:05:04] I/launcher - overall: 1 failed spec(s)
[13:05:04] E/launcher - Process exited with error code 1

Using standard to parse output
Re-running tests: test attempt 2
Re-running the following test files:
D:\jsout\specs\sitecomviewer\widgets\TrajectorySpec.js

1 个答案:

答案 0 :(得分:1)

Protractor-flake解析测试输出以告知需要重新运行的内容。如果所述输出不是它理解的格式,它将重新运行所有测试。我会说这是一个不错的选择Allure改变输出,因而......

尝试删除Allure并找出答案。