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
Copy Markdown

BurgerTest, IngredientTypeTest

Comment thread src/test/java/praktikum/BunTest.java Outdated
import static org.junit.Assert.assertEquals;

public class BunTest {
@Test
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Comment thread src/test/java/praktikum/BurgerTest.java Outdated

burger.moveIngredient(0, 1);

assertEquals(ingredient, burger.ingredients.get(1));
Copy link
Copy Markdown

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));
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Comment thread pom.xml Outdated
</plugin>

</plugins>
</build>
Copy link
Copy Markdown

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
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

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

Copy link
Copy Markdown

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"));
Copy link
Copy Markdown

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
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown

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