Skip to content
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

Added integration test for print and add command, updated ug #156

Conversation

Ashley-Lau
Copy link

No description provided.

@Ashley-Lau Ashley-Lau added this to the v1.3 milestone Oct 21, 2020
@codecov-io
Copy link

Codecov Report

Merging #156 into master will increase coverage by 1.79%.
The diff coverage is 33.33%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #156      +/-   ##
============================================
+ Coverage     32.70%   34.49%   +1.79%     
- Complexity      355      378      +23     
============================================
  Files           103      103              
  Lines          2382     2380       -2     
  Branches        301      302       +1     
============================================
+ Hits            779      821      +42     
+ Misses         1537     1487      -50     
- Partials         66       72       +6     
Impacted Files Coverage Δ Complexity Δ
...a/seedu/stock/logic/parser/PrintCommandParser.java 100.00% <ø> (+100.00%) 5.00 <0.00> (+5.00)
.../java/seedu/stock/logic/commands/PrintCommand.java 15.38% <33.33%> (+15.38%) 3.00 <2.00> (+3.00)
src/main/java/seedu/stock/model/UserPrefs.java 80.00% <0.00%> (+2.50%) 12.00% <0.00%> (+1.00%)
src/main/java/seedu/stock/model/StockBook.java 87.50% <0.00%> (+8.33%) 11.00% <0.00%> (+1.00%)
src/main/java/seedu/stock/model/stock/Source.java 90.90% <0.00%> (+9.09%) 8.00% <0.00%> (+1.00%)
src/main/java/seedu/stock/model/ModelManager.java 44.28% <0.00%> (+12.85%) 13.00% <0.00%> (+4.00%)
...n/java/seedu/stock/model/SerialNumberSetsBook.java 47.50% <0.00%> (+20.00%) 8.00% <0.00%> (+3.00%)
...u/stock/model/stock/UniqueSerialNumberSetList.java 43.75% <0.00%> (+20.83%) 11.00% <0.00%> (+5.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2af4d71...2751790. Read the comment docs.

### Saving data
Data (all stocks in inventory in json) is automatically saved to
`[root directory]/data/stockbook.json` when any of these commands is executed:
* add
* delete
* note
* notedelete
* update
* note

Choose a reason for hiding this comment

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

One of the note can be removed.

Copy link

@kaichaoang kaichaoang left a comment

Choose a reason for hiding this comment

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

LGTM, however do clear the extra "note" mentioned by @amylzting

Copy link

@AudreyFelicio AudreyFelicio left a comment

Choose a reason for hiding this comment

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

Overall LGTM! Do remove the note commented by @amylzting.

Comment on lines 40 to 45
// @Test
// public void execute_duplicateStock_throwsCommandException() {
// dog test case that causes some test to fail 1/2 the times??? what kind of sorcery is this?
// Stock stockInList = model.getStockBook().getStockList().get(0);
// assertCommandFailure(new AddCommand(stockInList), model, AddCommand.MESSAGE_DUPLICATE_STOCK);
// }

Choose a reason for hiding this comment

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

Maybe consider removing this first so the code will be cleaner. Can always refer to this later by viewing GitHub commit history

Copy link
Author

Choose a reason for hiding this comment

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

Alright will remove it!

@AudreyFelicio AudreyFelicio merged commit ac49469 into AY2021S1-CS2103T-T15-3:master Oct 21, 2020
@AudreyFelicio AudreyFelicio added the type.Task Task that needs to be done label Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type.Task Task that needs to be done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants