Skip to content

Develop1#1280

Open
norskrok wants to merge 9 commits intoyandex-praktikum:mainfrom
norskrok:develop1
Open

Develop1#1280
norskrok wants to merge 9 commits intoyandex-praktikum:mainfrom
norskrok:develop1

Conversation

@norskrok
Copy link

BurgerTest, IngredientTypeTest

import static org.junit.Assert.assertEquals;

public class BunTest {
@Test

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛔️Нужно исправить. Проверяем только класс burger


burger.moveIngredient(0, 1);

assertEquals(ingredient, burger.ingredients.get(1));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛔️Нужно исправить. Для юнит-тестов придерживаемся подхода: один тест, значит одна проверка. Если очень хочется несколько проверок -- тогда используем softAssertions. Поправь, пожалуйста, во всем коде

assertEquals(ingredient, burger.ingredients.get(1));
assertEquals(secondIngredient, burger.ingredients.get(0));
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛔️Нужно исправить. Нужно добавить параметризированный тест для Burger

pom.xml Outdated
</plugin>

</plugins>
</build>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛔️Нужно исправить. Нужно приложить отчет

@@ -0,0 +1,233 @@
#!/bin/sh

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛔️Нужно исправить. Папку .allure не нужно было загружать в репозиторий. Эта папка должна быть добавлена в .gitignore.

⛔️Нужно исправить. Аллюр отчет для юнит тестов не нужен

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не исправлено

@Test
public void getReceiptContainsBunNameTest() {
prepareBurgerForReceipt();
assertTrue(burger.getReceipt().toLowerCase().contains("black bun"));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛔️Нужно исправить. Строку рецепта проверяем целиком, чтобы не пропустить ошибки форматирования

assertTrue(burger.getReceipt().toLowerCase().contains("black bun"));
}

@Test

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛔️Нужно исправить. Нужно приложить отчет. Папка site

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не исправлено

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants