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

Complete Remaining AutoTests #217

Closed
ptvrajsk opened this issue Apr 3, 2019 · 9 comments
Closed

Complete Remaining AutoTests #217

ptvrajsk opened this issue Apr 3, 2019 · 9 comments
Assignees
Labels
priority.High status.Ongoing The issue is currently being worked on. note: remove this label before closing an issue. type.Epic A big feature which can be broken down into smaller stories e.g. search
Milestone

Comments

@ptvrajsk
Copy link

ptvrajsk commented Apr 3, 2019

No description provided.

@ptvrajsk ptvrajsk added type.Epic A big feature which can be broken down into smaller stories e.g. search priority.High labels Apr 3, 2019
@ptvrajsk ptvrajsk added this to the v1.4 milestone Apr 3, 2019
@WeiTangLau
Copy link

WeiTangLau commented Apr 6, 2019

Command Package [Tackled by: @jetkan-yk @WeiTangLau @ptvrajsk]

  • RenameCommandTest
  • DeleteCommandTest
  • DecryptCommandTest
  • EditPdfDescriptorTest
  • EncryptCommandTest
  • ExitCommandTest
  • FindCommandTest
  • HelpCommandTest
  • HistoryCommandTest
  • ListCommandTest
  • MergeCommandTest
  • RedoCommandTest
  • SelectCommandTest
  • TagCommandTest
  • UndoCommandTest
  • DeadlineCommandTest

Command Parser Package [Tackled By: @WeiTangLau]

  • PdfBookParserTest
  • ArgumentTokenizerTest
  • CommandParserTestUtil
  • DeadlineCommandParserTest
  • DecryptCommandParserTest
  • EncryptCommandParserTest
  • FindCommandParserTest
  • MergeCommandParserTest
  • ParserUtilTest
  • SelectCommandParserTest
  • TagCommandParserTest

Logic Test [Tackled By: @jetkan-yk ]

  • CommandHistoryTest
  • LogicManagerTest

Storage Test [Tackled by @ptvrajsk]

  • JsonAdaptedPdfTest
  • JsonPdfBookStorageTest
  • JsonSerializablePdfBookTest
  • JsonUserPrefStorageTest
  • StorageManagerTest

model Package [Tackled By: @ptvrajsk @WeiTangLau ]

  • ModelManagerTest
  • PdfBookTest
  • UserPrefsTest
  • VersionedPdfBookTest (Do we still need since we are not allowing for undo/redo?)

model.tag Package [Tackled By: @ptvrajsk]

  • TagTest

model.pdf Package [Tackled By: @ptvrajsk & @WeiTangLau ]

  • DeadlineTest
  • DirectoryTest
  • NameContainsKeywordsPredicateTest
  • NameTest
  • PdfTest
  • SizeTest
  • UniquePdfListTest
  • TagContainsKeywordsPredicateTest

@ptvrajsk ptvrajsk added the status.Ongoing The issue is currently being worked on. note: remove this label before closing an issue. label Apr 11, 2019
@ptvrajsk
Copy link
Author

ptvrajsk commented Apr 11, 2019

AutoTest Approach

Workflow

  1. Before starting on ANY of the test files, please make a comment in this issue stating clearly which test file you are starting to work on so that we can easily track each others progress and avoid having 2 people working on the same test file at the same time.
  2. Make Incremental commits on each test file. Every commit should only contain changes tied to one test file. (e.g. changes to CommandTestUtil.java & AddCommandTest.java can be under the same commit if your changes in CommandTestUtil.java is to allow AddCommandTest.java to work. So this commit will be considered as changes for the AddCommandTest.java to work.)
  3. After completing each test file (after confirming that it works and passes all style checks). Ensure that your commit message contains the Complete Remaining AutoTests #217 so that Github automatically links your commit to this issue. Should there be any code problems this will allow us to refer to the problem and fix it easily.
    NOTE: DO NOT include the statement resolve: #217 or resolves: #217 in your commits or PR because Github will automatically close this issue if you do.
  4. After your PR has been reviewed and merge, return to this issue and tick off the task that you have completed in Complete Remaining AutoTests #217 (comment). Again, this will just assist house keeping.

NOTE: There maybe some test cases that work right out the box. In that case you can lump them together in a single commit. So for example if TestA and TestB is already working but TestC is not. When making changes to TestC we can just put that Verified TestA & TestB working. Working on TestC along those lines.

Deadline

We should try to get this done BY Friday (12 April 2019). So that we have the weekend to settle UG, DG & PPP.

@ptvrajsk
Copy link
Author

ptvrajsk commented Apr 11, 2019

I'm currently starting NameTest, SizeTest & DirectoryTest. (model.pdf Package)
Awaiting PR Merger
Merged

ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 11, 2019
From prior testing, the NameTest already works (implementation in v1.3
of pdf++). SizeTest however was incomplete. Fixed and revamped the test
format to get it to work. SizeTest now works completely HOWEVER. From
the trial demo, it was highlighted that we should make the size value
more "readable" and this will require several changes in the Size,
JsonAdaptedPdf and other class files. Proceeding to work on those
changes now.

Track Changes: CS2103-AY1819S2-T12-4#217
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 11, 2019
SizeTest is now comprehensive and complete. This commit contains some
checkstyle fixes for Travis Erros that appeared in the previous commit
(Pdf.java javadoc missing). Also implemented the use of static variables
for threshold and prefix values so that any changes made will be easily
ported over to the test cases. One minor change was to make the regex
check in the Size.java a private static variable as per IntelliJ's
recommendation.

Track issue: CS2103-AY1819S2-T12-4#217
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 11, 2019
Completed the Directory Tests. Changes done to CommandTestUtil to
include cases for DirectoryTest.java. Made some changes to the
build.gradle and and travis.yml to begin including working test cases to
see if coveralls is working.

Track issue: CS2103-AY1819S2-T12-4#217
@ptvrajsk
Copy link
Author

ptvrajsk commented Apr 11, 2019

Currently working on NameContainsKeywordsTest, DeadlineTest, Unique PdfListTest, TagTest
Awaiting PR Merger
Merged

ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 11, 2019
Streamlined Sized test to use bitwise shift for more optimized
operations. NameContainsKeywordsPredicateTest is still working from its
implementation in v1.3.

Minor change to travis.yml, it would seem that only running nonGuiTests
still did not trigger coverage. Hence current implementation triggers
allTests but manually disables ui tests within build.gradle.

Track Issue: CS2103-AY1819S2-T12-4#217
@WeiTangLau
Copy link

WeiTangLau commented Apr 11, 2019

I am currently working PdfTest & ModelManagerTest
Merged

ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 11, 2019
Set of tests for UniquePdfListTest.java is fully working. Moving on to
work on TagTest as well as other ModelTests.

Track Issue: CS2103-AY1819S2-T12-4#217
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 11, 2019
Added enhancements to TagTest.java and it is now in a fully working
state. This commit includes some checkstyle fixes to address issues
raised by Travis in the last comit.

Track Issue: CS2103-AY1819S2-T12-4#217
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 11, 2019
Preliminary rounds of test creation complete for deadline class.

Track Issue: CS2103-AY1819S2-T12-4#217
@ptvrajsk
Copy link
Author

ptvrajsk commented Apr 11, 2019

Currently working on UserPrefsTest & PdfBookTest & VersionedPdfBookTest
Merged

ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 11, 2019
Minor changes to UserPrefsTest (Naming Convention Changes) and rework of
the PdfBookTest, both are now in working condition.

Track Issue: CS2103-AY1819S2-T12-4#217
@WeiTangLau WeiTangLau mentioned this issue Apr 11, 2019
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 11, 2019
Fixed the VersionedPdfBookTest.

Track Issue: CS2103-AY1819S2-T12-4#217
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 11, 2019
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 11, 2019
@ptvrajsk ptvrajsk reopened this Apr 11, 2019
@ptvrajsk
Copy link
Author

ptvrajsk commented Apr 11, 2019

Starting JsonAdaptedPdfTest & JsonPdfBookStorageTest
Merged

ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 12, 2019
Revamped the above test to bring it to a working state, reference CS2103-AY1819S2-T12-4#217.
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 12, 2019
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 12, 2019
Moving some variables to CommandTestUtil. Reference CS2103-AY1819S2-T12-4#217
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 12, 2019
Revamped and got the above test to work. Reference CS2103-AY1819S2-T12-4#217.
WeiTangLau added a commit to WeiTangLau/main that referenced this issue Apr 12, 2019
Test case for DeleteCommandParser.
see: CS2103-AY1819S2-T12-4#217
WeiTangLau added a commit to WeiTangLau/main that referenced this issue Apr 12, 2019
Provided test cases for EditCommandParser.
see : CS2103-AY1819S2-T12-4#217
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 12, 2019
With some changes to the test json files, managed to fix the
serializable pdf book test. Reference: CS2103-AY1819S2-T12-4#217
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 12, 2019
Minor changes to file, currently in passing state. Reference: CS2103-AY1819S2-T12-4#217
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 12, 2019
StorageManagerTest working out of the box, implemented some naming
convention changes across the storage unit and included the storage
tests in build.gradle. Expect Coverage increase. Reference: CS2103-AY1819S2-T12-4#217
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 12, 2019
Json files require legitimate files hence, unable to preset them in the
test json file that is uploaded to travis. Travis would always show it
as failing. Hence removed that test. Reference: CS2103-AY1819S2-T12-4#217
@jetkan-yk
Copy link

Currently working on deadlineCommandTest

@ptvrajsk
Copy link
Author

ptvrajsk commented Apr 12, 2019

Working on TagCommandTest & TagCommandParserTest
Merged

ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 12, 2019
TagCommand brought to skeletal working state. Reference: CS2103-AY1819S2-T12-4#217
WeiTangLau added a commit to WeiTangLau/main that referenced this issue Apr 12, 2019
Provided test cases for PdfBookParser.
See: CS2103-AY1819S2-T12-4#217
ptvrajsk added a commit to ptvrajsk/main that referenced this issue Apr 12, 2019
Implemented a working version of the TagCommandParserTest.
Reference CS2103-AY1819S2-T12-4#217.
jetkan-yk added a commit to jetkan-yk/main that referenced this issue Apr 12, 2019
jetkan-yk added a commit to jetkan-yk/main that referenced this issue Apr 12, 2019
WeiTangLau added a commit to WeiTangLau/main that referenced this issue Apr 13, 2019
Provided test cases for TagContainsKeywordsPredicate.
See: CS2103-AY1819S2-T12-4#217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.High status.Ongoing The issue is currently being worked on. note: remove this label before closing an issue. type.Epic A big feature which can be broken down into smaller stories e.g. search
Projects
None yet
Development

No branches or pull requests

4 participants