Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.18 KB | None | 0 0
  1. Running tests with bash 3.1.0(1)-release
  2.  
  3. ✓ no arguments prints usage instructions
  4. ✓ -v and --version print version number
  5. ✓ -h and --help print help
  6. ✗ invalid filename prints an error
  7. (in test file test/bats.bats, line 26)
  8. `[ $status -eq 1 ]' failed
  9. ✗ empty test file runs zero tests
  10. (in test file test/bats.bats, line 33)
  11. `[ "$output" = "1..0" ]' failed
  12. ✗ one passing test
  13. (in test file test/bats.bats, line 39)
  14. `[ "${lines[0]}" = "1..1" ]' failed
  15. ✗ summary passing tests
  16. (in test file test/bats.bats, line 46)
  17. `[ "${lines[1]}" = "1 test, 0 failures" ]' failed
  18. ✗ summary passing and skipping tests
  19. (in test file test/bats.bats, line 52)
  20. `[ "${lines[2]}" = "2 tests, 0 failures, 1 skipped" ]' failed
  21. ✗ summary passing and failing tests
  22. (in test file test/bats.bats, line 58)
  23. `[ "${lines[4]}" = "2 tests, 1 failure" ]' failed
  24. ✗ summary passing, failing and skipping tests
  25. (in test file test/bats.bats, line 64)
  26. `[ "${lines[5]}" = "3 tests, 1 failure, 1 skipped" ]' failed
  27. ✗ one failing test
  28. (in test file test/bats.bats, line 69)
  29. `[ $status -eq 1 ]' failed
  30. ✗ one failing and one passing test
  31. (in test file test/bats.bats, line 78)
  32. `[ $status -eq 1 ]' failed
  33. ✗ failing test with significant status
  34. (in test file test/bats.bats, line 88)
  35. `[ $status -eq 1 ]' failed
  36. ✗ failing helper function logs the test case's line number
  37. (in test file test/bats.bats, line 94)
  38. `[ $status -eq 1 ]' failed
  39. ✓ test environments are isolated
  40. ✗ setup is run once before each test
  41. (in test file test/bats.bats, line 111)
  42. `[ ${#lines[@]} -eq 3 ]' failed
  43. ✗ teardown is run once after each test, even if it fails
  44. (in test file test/bats.bats, line 117)
  45. `[ $status -eq 1 ]' failed
  46. ✗ setup failure
  47. (in test file test/bats.bats, line 124)
  48. `[ $status -eq 1 ]' failed
  49. ✗ passing test with teardown failure
  50. (in test file test/bats.bats, line 132)
  51. `[ $status -eq 1 ]' failed
  52. ✗ failing test with teardown failure
  53. (in test file test/bats.bats, line 140)
  54. `[ $status -eq 1 ]' failed
  55. ✗ teardown failure with significant status
  56. (in test file test/bats.bats, line 148)
  57. `[ $status -eq 1 ]' failed
  58. ✓ failing test file outside of BATS_CWD
  59. ✓ load sources scripts relative to the current test file
  60. ✗ load aborts if the specified script does not exist
  61. (in test file test/bats.bats, line 166)
  62. `[ $status -eq 1 ]' failed
  63. ✓ load sources scripts by absolute path
  64. ✗ load aborts if the script, specified by an absolute path, does not exist
  65. (in test file test/bats.bats, line 176)
  66. `[ $status -eq 1 ]' failed
  67. ✗ output is discarded for passing tests and printed for failing tests
  68. (in test file test/bats.bats, line 181)
  69. `[ $status -eq 1 ]' failed
  70. ✗ -c prints the number of tests
  71. (in test file test/bats.bats, line 190)
  72. `[ "$output" = "0" ]' failed
  73. ✗ dash-e is not mangled on beginning of line
  74. (in test file test/bats.bats, line 200)
  75. `[ "${lines[1]}" = "ok 1 dash-e on beginning of line" ]' failed
  76. ✓ dos line endings are stripped before testing
  77. ✗ test file without trailing newline
  78. (in test file test/bats.bats, line 211)
  79. `[ "${lines[1]}" = "ok 1 truth" ]' failed
  80. ✗ skipped tests
  81. (in test file test/bats.bats, line 217)
  82. `[ "${lines[1]}" = "ok 1 # skip a skipped test" ]' failed
  83. ✓ extended syntax
  84. ✓ pretty and tap formats
  85. ✗ pretty formatter bails on invalid tap
  86. (in test file test/bats.bats, line 244)
  87. `[ $status -eq 1 ]' failed
  88. ✗ single-line tests
  89. (in test file test/bats.bats, line 251)
  90. `[ $status -eq 1 ]' failed
  91. ✗ testing IFS not modified by run
  92. (in test file test/bats.bats, line 263)
  93. `[ "${lines[1]}" = "ok 1 loop_func" ]' failed
  94. ✗ executing exported function does not break failing test output
  95. (in test file test/bats.bats, line 270)
  96. `[ $status -eq 1 ]' failed
  97. ✓ running a suite with no test files
  98. ✓ running a suite with one test file
  99. ✓ counting tests in a suite
  100. ✓ aggregated output of multiple tests in a suite
  101. ✓ a failing test in a suite results in an error exit code
  102. ✗ running an ad-hoc suite by specifying multiple test files
  103. (in test file test/suite.bats, line 48)
  104. `[ "${lines[0]}" = "1..3" ]' failed
  105. ✓ extended syntax in suite
  106.  
  107. 45 tests, 29 failures
  108.  
  109. Running tests with bash 3.2.0(1)-release
  110.  
  111. ✓ no arguments prints usage instructions
  112. ✓ -v and --version print version number
  113. ✓ -h and --help print help
  114. ✓ invalid filename prints an error
  115. ✓ empty test file runs zero tests
  116. ✓ one passing test
  117. ✓ summary passing tests
  118. ✓ summary passing and skipping tests
  119. ✓ summary passing and failing tests
  120. ✓ summary passing, failing and skipping tests
  121. ✓ one failing test
  122. ✓ one failing and one passing test
  123. ✓ failing test with significant status
  124. ✓ failing helper function logs the test case's line number
  125. ✓ test environments are isolated
  126. ✓ setup is run once before each test
  127. ✓ teardown is run once after each test, even if it fails
  128. ✓ setup failure
  129. ✓ passing test with teardown failure
  130. ✓ failing test with teardown failure
  131. ✓ teardown failure with significant status
  132. ✓ failing test file outside of BATS_CWD
  133. ✓ load sources scripts relative to the current test file
  134. ✓ load aborts if the specified script does not exist
  135. ✓ load sources scripts by absolute path
  136. ✓ load aborts if the script, specified by an absolute path, does not exist
  137. ✓ output is discarded for passing tests and printed for failing tests
  138. ✓ -c prints the number of tests
  139. ✓ dash-e is not mangled on beginning of line
  140. ✓ dos line endings are stripped before testing
  141. ✓ test file without trailing newline
  142. ✓ skipped tests
  143. ✓ extended syntax
  144. ✓ pretty and tap formats
  145. ✓ pretty formatter bails on invalid tap
  146. ✓ single-line tests
  147. ✓ testing IFS not modified by run
  148. ✗ executing exported function does not break failing test output
  149. (in test file test/bats.bats, line 273)
  150. `[ "${lines[2]}" = "# (in test file test/fixtures/bats/exported_function.bats, line 9)" ]' failed
  151. ✓ running a suite with no test files
  152. ✓ running a suite with one test file
  153. ✓ counting tests in a suite
  154. ✓ aggregated output of multiple tests in a suite
  155. ✓ a failing test in a suite results in an error exit code
  156. ✓ running an ad-hoc suite by specifying multiple test files
  157. ✓ extended syntax in suite
  158.  
  159. 45 tests, 1 failure
  160.  
  161. Running tests with bash 4.0.0(1)-release
  162.  
  163. ✓ no arguments prints usage instructions
  164. ✓ -v and --version print version number
  165. ✓ -h and --help print help
  166. ✓ invalid filename prints an error
  167. ✓ empty test file runs zero tests
  168. ✓ one passing test
  169. ✓ summary passing tests
  170. ✓ summary passing and skipping tests
  171. ✓ summary passing and failing tests
  172. ✓ summary passing, failing and skipping tests
  173. ✓ one failing test
  174. ✓ one failing and one passing test
  175. ✓ failing test with significant status
  176. ✓ failing helper function logs the test case's line number
  177. ✓ test environments are isolated
  178. ✓ setup is run once before each test
  179. ✓ teardown is run once after each test, even if it fails
  180. ✓ setup failure
  181. ✗ passing test with teardown failure
  182. (in test file test/bats.bats, line 134)
  183. `[ "${lines[2]}" = "# (from function \`teardown' in test file $RELATIVE_FIXTURE_ROOT/failing_teardown.bats, line 2)" ]' failed
  184. ✓ failing test with teardown failure
  185. ✗ teardown failure with significant status
  186. (in test file test/bats.bats, line 149)
  187. `[ "${lines[3]}" = "# \`eval \"( exit \${STATUS:-1} )\"' failed with status 2" ]' failed
  188. ✓ failing test file outside of BATS_CWD
  189. ✓ load sources scripts relative to the current test file
  190. ✓ load aborts if the specified script does not exist
  191. ✓ load sources scripts by absolute path
  192. ✓ load aborts if the script, specified by an absolute path, does not exist
  193. ✓ output is discarded for passing tests and printed for failing tests
  194. ✓ -c prints the number of tests
  195. ✓ dash-e is not mangled on beginning of line
  196. ✓ dos line endings are stripped before testing
  197. ✓ test file without trailing newline
  198. ✓ skipped tests
  199. ✓ extended syntax
  200. ✓ pretty and tap formats
  201. ✓ pretty formatter bails on invalid tap
  202. ✓ single-line tests
  203. ✓ testing IFS not modified by run
  204. ✗ executing exported function does not break failing test output
  205. (in test file test/bats.bats, line 273)
  206. `[ "${lines[2]}" = "# (in test file test/fixtures/bats/exported_function.bats, line 9)" ]' failed
  207. ✓ running a suite with no test files
  208. ✓ running a suite with one test file
  209. ✓ counting tests in a suite
  210. ✓ aggregated output of multiple tests in a suite
  211. ✓ a failing test in a suite results in an error exit code
  212. ✓ running an ad-hoc suite by specifying multiple test files
  213. ✓ extended syntax in suite
  214.  
  215. 45 tests, 3 failures
  216.  
  217. Running tests with bash 4.1.0(1)-release
  218.  
  219. ✓ no arguments prints usage instructions
  220. ✓ -v and --version print version number
  221. ✓ -h and --help print help
  222. ✓ invalid filename prints an error
  223. ✓ empty test file runs zero tests
  224. ✓ one passing test
  225. ✓ summary passing tests
  226. ✓ summary passing and skipping tests
  227. ✓ summary passing and failing tests
  228. ✓ summary passing, failing and skipping tests
  229. ✓ one failing test
  230. ✓ one failing and one passing test
  231. ✓ failing test with significant status
  232. ✓ failing helper function logs the test case's line number
  233. ✓ test environments are isolated
  234. ✓ setup is run once before each test
  235. ✓ teardown is run once after each test, even if it fails
  236. ✓ setup failure
  237. ✓ passing test with teardown failure
  238. ✓ failing test with teardown failure
  239. ✓ teardown failure with significant status
  240. ✓ failing test file outside of BATS_CWD
  241. ✓ load sources scripts relative to the current test file
  242. ✓ load aborts if the specified script does not exist
  243. ✓ load sources scripts by absolute path
  244. ✓ load aborts if the script, specified by an absolute path, does not exist
  245. ✓ output is discarded for passing tests and printed for failing tests
  246. ✓ -c prints the number of tests
  247. ✓ dash-e is not mangled on beginning of line
  248. ✓ dos line endings are stripped before testing
  249. ✓ test file without trailing newline
  250. ✓ skipped tests
  251. ✓ extended syntax
  252. ✓ pretty and tap formats
  253. ✓ pretty formatter bails on invalid tap
  254. ✓ single-line tests
  255. ✓ testing IFS not modified by run
  256. ✗ executing exported function does not break failing test output
  257. (in test file test/bats.bats, line 273)
  258. `[ "${lines[2]}" = "# (in test file test/fixtures/bats/exported_function.bats, line 9)" ]' failed
  259. ✓ running a suite with no test files
  260. ✓ running a suite with one test file
  261. ✓ counting tests in a suite
  262. ✓ aggregated output of multiple tests in a suite
  263. ✓ a failing test in a suite results in an error exit code
  264. ✓ running an ad-hoc suite by specifying multiple test files
  265. ✓ extended syntax in suite
  266.  
  267. 45 tests, 1 failure
  268.  
  269. Running tests with bash 4.2.0(1)-release
  270.  
  271. ✓ no arguments prints usage instructions
  272. ✓ -v and --version print version number
  273. ✓ -h and --help print help
  274. ✓ invalid filename prints an error
  275. ✓ empty test file runs zero tests
  276. ✓ one passing test
  277. ✓ summary passing tests
  278. ✓ summary passing and skipping tests
  279. ✓ summary passing and failing tests
  280. ✓ summary passing, failing and skipping tests
  281. ✓ one failing test
  282. ✓ one failing and one passing test
  283. ✓ failing test with significant status
  284. ✓ failing helper function logs the test case's line number
  285. ✓ test environments are isolated
  286. ✓ setup is run once before each test
  287. ✓ teardown is run once after each test, even if it fails
  288. ✓ setup failure
  289. ✓ passing test with teardown failure
  290. ✓ failing test with teardown failure
  291. ✓ teardown failure with significant status
  292. ✓ failing test file outside of BATS_CWD
  293. ✓ load sources scripts relative to the current test file
  294. ✓ load aborts if the specified script does not exist
  295. ✓ load sources scripts by absolute path
  296. ✓ load aborts if the script, specified by an absolute path, does not exist
  297. ✓ output is discarded for passing tests and printed for failing tests
  298. ✓ -c prints the number of tests
  299. ✓ dash-e is not mangled on beginning of line
  300. ✓ dos line endings are stripped before testing
  301. ✓ test file without trailing newline
  302. ✓ skipped tests
  303. ✓ extended syntax
  304. ✓ pretty and tap formats
  305. ✓ pretty formatter bails on invalid tap
  306. ✓ single-line tests
  307. ✓ testing IFS not modified by run
  308. ✗ executing exported function does not break failing test output
  309. (in test file test/bats.bats, line 273)
  310. `[ "${lines[2]}" = "# (in test file test/fixtures/bats/exported_function.bats, line 9)" ]' failed
  311. ✓ running a suite with no test files
  312. ✓ running a suite with one test file
  313. ✓ counting tests in a suite
  314. ✓ aggregated output of multiple tests in a suite
  315. ✓ a failing test in a suite results in an error exit code
  316. ✓ running an ad-hoc suite by specifying multiple test files
  317. ✓ extended syntax in suite
  318.  
  319. 45 tests, 1 failure
  320.  
  321. Running tests with bash 4.3.0(1)-release
  322.  
  323. ✓ no arguments prints usage instructions
  324. ✓ -v and --version print version number
  325. ✓ -h and --help print help
  326. ✓ invalid filename prints an error
  327. ✓ empty test file runs zero tests
  328. ✓ one passing test
  329. ✓ summary passing tests
  330. ✓ summary passing and skipping tests
  331. ✓ summary passing and failing tests
  332. ✓ summary passing, failing and skipping tests
  333. ✓ one failing test
  334. ✓ one failing and one passing test
  335. ✓ failing test with significant status
  336. ✓ failing helper function logs the test case's line number
  337. ✓ test environments are isolated
  338. ✓ setup is run once before each test
  339. ✓ teardown is run once after each test, even if it fails
  340. ✓ setup failure
  341. ✓ passing test with teardown failure
  342. ✓ failing test with teardown failure
  343. ✓ teardown failure with significant status
  344. ✓ failing test file outside of BATS_CWD
  345. ✓ load sources scripts relative to the current test file
  346. ✓ load aborts if the specified script does not exist
  347. ✓ load sources scripts by absolute path
  348. ✓ load aborts if the script, specified by an absolute path, does not exist
  349. ✓ output is discarded for passing tests and printed for failing tests
  350. ✓ -c prints the number of tests
  351. ✓ dash-e is not mangled on beginning of line
  352. ✓ dos line endings are stripped before testing
  353. ✓ test file without trailing newline
  354. ✓ skipped tests
  355. ✓ extended syntax
  356. ✓ pretty and tap formats
  357. ✓ pretty formatter bails on invalid tap
  358. ✓ single-line tests
  359. ✓ testing IFS not modified by run
  360. ✗ executing exported function does not break failing test output
  361. (in test file test/bats.bats, line 273)
  362. `[ "${lines[2]}" = "# (in test file test/fixtures/bats/exported_function.bats, line 9)" ]' failed
  363. ✓ running a suite with no test files
  364. ✓ running a suite with one test file
  365. ✓ counting tests in a suite
  366. ✓ aggregated output of multiple tests in a suite
  367. ✓ a failing test in a suite results in an error exit code
  368. ✓ running an ad-hoc suite by specifying multiple test files
  369. ✓ extended syntax in suite
  370.  
  371. 45 tests, 1 failure
  372.  
  373. Running tests with bash 4.4.0(1)-release
  374.  
  375. ✓ no arguments prints usage instructions
  376. ✓ -v and --version print version number
  377. ✓ -h and --help print help
  378. ✓ invalid filename prints an error
  379. ✓ empty test file runs zero tests
  380. ✓ one passing test
  381. ✓ summary passing tests
  382. ✓ summary passing and skipping tests
  383. ✓ summary passing and failing tests
  384. ✓ summary passing, failing and skipping tests
  385. ✓ one failing test
  386. ✓ one failing and one passing test
  387. ✓ failing test with significant status
  388. ✓ failing helper function logs the test case's line number
  389. ✓ test environments are isolated
  390. ✓ setup is run once before each test
  391. ✓ teardown is run once after each test, even if it fails
  392. ✓ setup failure
  393. ✓ passing test with teardown failure
  394. ✓ failing test with teardown failure
  395. ✓ teardown failure with significant status
  396. ✓ failing test file outside of BATS_CWD
  397. ✓ load sources scripts relative to the current test file
  398. ✓ load aborts if the specified script does not exist
  399. ✓ load sources scripts by absolute path
  400. ✓ load aborts if the script, specified by an absolute path, does not exist
  401. ✓ output is discarded for passing tests and printed for failing tests
  402. ✓ -c prints the number of tests
  403. ✓ dash-e is not mangled on beginning of line
  404. ✓ dos line endings are stripped before testing
  405. ✓ test file without trailing newline
  406. ✓ skipped tests
  407. ✓ extended syntax
  408. ✓ pretty and tap formats
  409. ✓ pretty formatter bails on invalid tap
  410. ✓ single-line tests
  411. ✓ testing IFS not modified by run
  412. ✓ executing exported function does not break failing test output
  413. ✓ running a suite with no test files
  414. ✓ running a suite with one test file
  415. ✓ counting tests in a suite
  416. ✓ aggregated output of multiple tests in a suite
  417. ✓ a failing test in a suite results in an error exit code
  418. ✓ running an ad-hoc suite by specifying multiple test files
  419. ✓ extended syntax in suite
  420.  
  421. 45 tests, 0 failures
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement