• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SibylLab / Program-Wars / 1308
51%

Build:
DEFAULT BRANCH: master
Ran 02 Sep 2020 07:47PM UTC
Jobs 1
Files 89
Run time 13s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1308

push

travis-ci

web-flow
Add unit tests #629 (#634)

* Made some changes to CardFactory to reduce the size of the if statement in newCard. Fixed a bug in isNegativeEffect in card data so that Trojan is not confused as a negative effect. Added tests for card factory newCard.

* Testing for the Card class.

* Add tests for CardWrapper.

* Fixed a mistake with how I was testing CardWrapper constructor. Added Tests for instruction card class.

* Added Method card class tests.

* Configured jest to not look in the documents folder.

* Added MimicWrapper tests, and started Repeat tests.

* Added Repeat class tests.

* Added tests for Search and Sort cards.

* Added tests for Virus card.

* Added tests for Redraw handler.

* Started adding back PlayBestCard tests.

* Added more tests for PlayBestCard.

* Added tests for Virus in play best card. Updated this to call willAccept on the stacks, so an AI can't play a virus on a stack with a virus.

* Added test for search and added to only search the top n cards set by the search cards value. Also, fixed an issue with the loop that would never find a card.

* Added tests for seach and sort. Adjusted sort as drawing cards from the deck should never be undefined.

* Finished testing the PlayBestCard class. also set up play negative effect to not need scores as players have these attached to them now. Have not removed it from the rest of the game yet though.

* Added tests for AIHandler.

* Added test for action handler which is essentially an abstract class. Added deck to the params of handle and it is everywhere else.

* Added back the aiHelpers tests as the file hasn't changed.

* Added tests for play random card. Fixed the search in random card to use the card value or the length of the deck to bound the choice.

* Since we made PlayBestCard instruction method only play on the method stack, I am removing the MethodStackFirst component.

* Added test for AIHandlerFactory and fixed some small is... (continued)

259 of 510 branches covered (50.78%)

Branch coverage included in aggregate %.

622 of 1209 relevant lines covered (51.45%)

37.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1308.1 02 Sep 2020 07:47PM UTC 0
51.25
Travis Job 1308.1
Source Files on build 1308
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1308
  • ba435ef1 on github
  • Prev Build on master (#1307)
  • Next Build on master (#1309)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc