Skip to content

Conversation

@ppetermsc
Copy link

No description provided.

Choose a reason for hiding this comment

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

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


@RunWith(Parameterized.class)
public class BunTest {

Choose a reason for hiding this comment

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

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

String receipt = burger.getReceipt();

assertNotNull("Чек не должен быть null", receipt);
assertTrue("Чек должен содержать название булочки", receipt.contains(bunName));

Choose a reason for hiding this comment

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

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


assertNotNull("Чек не должен быть null", receipt);
assertTrue("Чек должен содержать название булочки", receipt.contains(bunName));
assertTrue("Чек должен содержать название ингредиента", receipt.contains(ingredientName.toLowerCase()));

Choose a reason for hiding this comment

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

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

Choose a reason for hiding this comment

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

⛔️Нужно исправить. В папке target оставляем только отчет, остальные файлы нужно удалить из пулл реквеста

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