|
1 | 1 | # cucumber-jvm-console-formatter |
| 2 | + |
| 3 | +Console Output Formatter for Cucumber JVM |
| 4 | + |
| 5 | +# Formatters |
| 6 | + |
| 7 | +- org.fxclub.qa.cucumber.ConsoleFormatter - prints test progress to console, compatible with tests executed in parallel using https://github.com/temyers/cucumber-jvm-parallel-plugin |
| 8 | + |
| 9 | +``` |
| 10 | +[INFO] ------------------------------------------------------- |
| 11 | +[INFO] T E S T S |
| 12 | +[INFO] ------------------------------------------------------- |
| 13 | +2017-08-25 11:00:11 INFO - # 1 [PASSED] - Тест allure Сломанный: Сложение одинарное Сломанный [] |
| 14 | +2017-08-25 11:00:11 INFO - # 2 [PASSED] - Тест allure Сломанный: Сложение двух чисел Сломанный [[1, 4, 5]] |
| 15 | +2017-08-25 11:00:11 INFO - # 4 [PASSED] - Тест allure Сломанный: Сложение двух чисел Сломанный [[1, 4, 5]] |
| 16 | +2017-08-25 11:00:11 INFO - # 3 [PASSED] - Тест allure 2: Scenario [] |
| 17 | +2017-08-25 11:00:11 INFO - # 5 [PASSED] - Тест allure Сломанный: Сложение двух чисел Сломанный [[1, 4, 5]] |
| 18 | +2017-08-25 11:00:11 INFO - # 7 [PASSED] - Тест allure 2: Scenario Structure [[1, 1, 2]] |
| 19 | +2017-08-25 11:00:11 ERROR - # 6 [FAILED] - Тест allure Сломанный: Сложение двух чисел Сломанный [[1, 4, 5]] |
| 20 | +
|
| 21 | +Дано первое число 5 |
| 22 | +И второе число 10 |
| 23 | +Когда я их складываю |
| 24 | +Тогда сумма равна 16 |
| 25 | +
|
| 26 | +java.lang.AssertionError: expected:<16> but was:<15> |
| 27 | + at org.junit.Assert.fail(Assert.java:88) |
| 28 | + at org.junit.Assert.failNotEquals(Assert.java:834) |
| 29 | + at org.junit.Assert.assertEquals(Assert.java:645) |
| 30 | + at org.junit.Assert.assertEquals(Assert.java:631) |
| 31 | + at org.fclub.qa.cucumber.examples.steps.Steps.сумма_равна(Steps.java:50) |
| 32 | + at ✽.Тогда сумма равна 16(/Users/majer-dy/Documents/IDEA/cucumber-jvm-console-formatter/src/test/resources/features/test-allure-failed.feature:15) |
| 33 | +
|
| 34 | +2017-08-25 11:00:11 INFO - # 8 [PASSED] - Тест allure 2: Scenario Structure [[1, 1, 2]] |
| 35 | +2017-08-25 11:00:11 INFO - # 9 [PASSED] - Тест allure Сломанный: Сложение одинарное Сломанный2 [[1, 4, 5]] |
| 36 | +2017-08-25 11:00:11 INFO - # 10 [PASSED] - Тест allure 2: Scenario Structure 2 [[3, 1, 4]] |
| 37 | +2017-08-25 11:00:11 INFO - # 12 [PASSED] - Тест allure 2: Scenario Structure 2 [[3, 1, 4]] |
| 38 | +2017-08-25 11:00:11 ERROR - # 11 [SKIPPED] - Тест allure Сломанный: Пропущен [[1, 4, 5]] |
| 39 | +2017-08-25 11:00:11 ERROR - # 14 [FAILED] - Тест allure Сломанный: Сломан [[1, 4, 5]] |
| 40 | +
|
| 41 | +Дано сломанный сценарий |
| 42 | +Когда отображается отчет |
| 43 | +То видно исключение |
| 44 | +
|
| 45 | +2017-08-25 11:00:11 INFO - # 13 [PASSED] - Тест allure: Сложение одинарное [] |
| 46 | +2017-08-25 11:00:12 INFO - # 16 [PASSED] - Тест allure: Сложение двух чисел [[6, 6, 12]] |
| 47 | +2017-08-25 11:00:12 INFO - # 17 [PASSED] - Тест allure: Сложение двух чисел [[6, 6, 12]] |
| 48 | +2017-08-25 11:00:12 INFO - # 18 [PASSED] - Тест allure: Сложение двух чисел еще раз [[12, 5, 17]] |
| 49 | +2017-08-25 11:00:12 INFO - # 19 [PASSED] - Тест allure: Сложение двух чисел еще раз [[12, 5, 17]] |
| 50 | +2017-08-25 11:00:12 INFO - # 15 [PASSED] - Text allure 3: Scenario [] |
| 51 | +2017-08-25 11:00:12 INFO - # 20 [PASSED] - Text allure 3: Scenario Structure [[http://www.google.es, http://www.leda-mc.com, http://www.google.eshttp://www.leda-mc.com]] |
| 52 | +2017-08-25 11:00:12 INFO - # 21 [PASSED] - Text allure 3: Scenario Structure [[http://www.google.es, http://www.leda-mc.com, http://www.google.eshttp://www.leda-mc.com]] |
| 53 | +2017-08-25 11:00:12 INFO - # 22 [PASSED] - Test TextContext: Create and reuse Helper [] |
| 54 | +2017-08-25 11:00:12 INFO - # 23 [PASSED] - Test TextContext: Create and reuse object [] |
| 55 | +[ERROR] Failures: |
| 56 | +[ERROR] TestAllureFailed03Test>AbstractTestNGCucumberTests.feature:21 » Cucumber java.... |
| 57 | +[INFO] |
| 58 | +[ERROR] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0 |
| 59 | +[INFO] |
| 60 | +[ERROR] There are test failures. |
| 61 | +
|
| 62 | +Please refer to /Users/majer-dy/Documents/IDEA/cucumber-jvm-console-formatter/target/surefire-reports for the individual test results. |
| 63 | +Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream. |
| 64 | +[INFO] ------------------------------------------------------------------------ |
| 65 | +[INFO] BUILD SUCCESS |
| 66 | +[INFO] ------------------------------------------------------------------------ |
| 67 | +[INFO] Total time: 5.986 s |
| 68 | +[INFO] Finished at: 2017-08-25T11:00:12+02:00 |
| 69 | +[INFO] Final Memory: 20M/308M |
| 70 | +[INFO] ------------------------------------------------------------------------ |
| 71 | +``` |
0 commit comments