You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Of course you can simply add the test cases manually, like you've been doing all along this tutorial.
However, throughout the tutorial, there was no mention of adding test cases or test files. Since the tests are added with the actual Java implementation code in the git commit links, there should be mentions of these tests in the steps.
Proposed
In the introduction of the tutorial, include:
We will also write tests to ensure that the changes are working as expected. You will find the implementation details of these tests in information boxes like this one.
In Hook RemarkCommand into the application section
Since we created a new file RemarkCommand, we should also create a RemarkCommandTest file. JUnit tests are annotated with @test. For now, we expect the execute in RemarkCommand to fail. Thus, the test will reflect this expectation.
Don’t forget to include a test case in AddressBookParserTest to ensure that a RemarkCommand is created when the command is parsed successfully.
In Enhancing RemarkCommand section
Since RemarkCommand’s constructor now accepts arguments, the tests will reflect that. Note: you can use CommandTestUtil.java to include constant test values for greater reusability.
Additionally, the equals method should be tested with various inputs, like objects of the different values or types.
RemarkCommandParserTest should also be included to ensure that RemarkCommandParser works as we expect. Write test cases that cover a wide range of user inputs, such as presence of remark and fields.
In Update other usages of Person section
PersonBuilder.java is used to create a default Person object for testing purposes. Don’t forget to include a remark field in this default Person too!
In Updating Storage section
TypicalPersons.java is used to create various Person objects for testing. Add the remark field for these Person objects!
The text was updated successfully, but these errors were encountered:
Situation
In the writing test section, there is a line:
However, throughout the tutorial, there was no mention of adding test cases or test files. Since the tests are added with the actual Java implementation code in the git commit links, there should be mentions of these tests in the steps.
Proposed
In the introduction of the tutorial, include:
We will also write tests to ensure that the changes are working as expected. You will find the implementation details of these tests in information boxes like this one.
In
Hook RemarkCommand into the application
sectionIn
Enhancing RemarkCommand
sectionIn
Update other usages of Person
sectionIn
Updating Storage
sectionThe text was updated successfully, but these errors were encountered: