-
Notifications
You must be signed in to change notification settings - Fork 2k
Дипломная работа первая часть #1164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
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 { | ||
|
|
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛔️Нужно исправить. Строку рецепта проверяем целиком, чтобы не пропустить ошибки форматирования
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛔️Нужно исправить. В папке target оставляем только отчет, остальные файлы нужно удалить из пулл реквеста
No description provided.