Menu

#2 Create Baseline Unit Tests

1.0
wont-fix
2016-02-06
2014-04-10
David Rader
No

Need to create proper unit tests. This ticket requires a unit test framework [#16].

Additional unit tests (beyond baseline) should be created as separate tickets as/when needed.

Baseline Unit Tests
* /exchange (unknown exchange, generic type) note: need to test 'custom' type in separate unit test
* /response moniker format
* /response data format
* verbose
* /version
* /list exchanges
* /config file

Other baseline items to account for:

/date formatter (tests different 'types' of date formats)
* none: CRYPTOTRADE, CAVIRTEX, COINBASE, VIRCUREX, KRAKEN
* int (1395104814994129): MTGOX, BTCE, BITSTAMP,
* str (Thu, 10 Apr 2014 12:31:52 -0000): BITCOINAVERAGE, CAMPBX

bid/ask swaps
* bid/ask (normal): bitcoinaverage, cryptotrade, bitstamp, campbx, kraken
* buy/sell (swap):btce, mtgox
* none: cavirtex, coinbase, vircurex

test each crypto (btc, ltc, nme, etc.)
test each exchange?

Related

Tickets: #16

Discussion

  • David Rader

    David Rader - 2014-05-08
    • status: open --> accepted
    • private: Yes --> No
     
  • David Rader

    David Rader - 2014-05-27
    • labels: unit tests --> unittest, testing, qa
    • summary: Create Unit Tests --> Create Baseline Unit Tests
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,12 +1,26 @@
    -need unit tests for everything. the following will help:
    +Need to create proper unit tests. This ticket requires a unit test framework [#16].
    +
    +Additional unit tests (beyond baseline) should be created as separate tickets as/when needed.
    +
    +Baseline Unit Tests
    +* exchange (unknown exchange, generic type)
    +    * note: need to test 'custom' type in separate unit test
    +* response moniker format
    +* response data format
    +* verbose
    +* version
    +* list exchanges
    +* config file
    +
    +Other baseline items to account for:
    
     date formatter
     * none
    -** CRYPTOTRADE:*, CAVIRTEX, COINBASE, VIRCUREX, KRAKEN
    +    * CRYPTOTRADE:*, CAVIRTEX, COINBASE, VIRCUREX, KRAKEN
     * int (1395104814994129)
    -** MTGOX, BTCE:*, BITSTAMP, 
    +    * MTGOX, BTCE:*, BITSTAMP, 
     * str (Thu, 10 Apr 2014 12:31:52 -0000)
    -** BITCOINAVERAGE, CAMPBX
    +    * BITCOINAVERAGE, CAMPBX
    
    
     bid/ask swaps
    
     
  • David Rader

    David Rader - 2014-05-28
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,30 +3,32 @@
     Additional unit tests (beyond baseline) should be created as separate tickets as/when needed.
    
     Baseline Unit Tests
    -* exchange (unknown exchange, generic type)
    -    * note: need to test 'custom' type in separate unit test
    -* response moniker format
    -* response data format
    -* verbose
    -* version
    -* list exchanges
    -* config file
    + * /exchange (unknown exchange, generic type)
    + ** note: need to test 'custom' type in separate unit test
    + * /response moniker format
    + * /response data format
    + * verbose
    + * /version
    + * /list exchanges
    + * /config file
    
     Other baseline items to account for:
    
    -date formatter
    -* none
    -    * CRYPTOTRADE:*, CAVIRTEX, COINBASE, VIRCUREX, KRAKEN
    -* int (1395104814994129)
    -    * MTGOX, BTCE:*, BITSTAMP, 
    -* str (Thu, 10 Apr 2014 12:31:52 -0000)
    -    * BITCOINAVERAGE, CAMPBX
    -
    +/date formatter (tests different 'types' of date formats)
    + * none
    + ** CRYPTOTRADE:*, CAVIRTEX, COINBASE, VIRCUREX, KRAKEN
    + * int (1395104814994129)
    + ** MTGOX, BTCE:*, BITSTAMP, 
    + * str (Thu, 10 Apr 2014 12:31:52 -0000)
    + ** BITCOINAVERAGE, CAMPBX
    
     bid/ask swaps
    -* bid/ask (normal)
    -** bitcoinaverage, cryptotrade, bitstamp, campbx, kraken
    -* buy/sell (swap)
    -** btce:*, mtgox
    -* none
    -** cavirtex, coinbase, vircurex
    + * bid/ask (normal)
    + ** bitcoinaverage, cryptotrade, bitstamp, campbx, kraken
    + * buy/sell (swap)
    + ** btce:*, mtgox
    + * none
    + ** cavirtex, coinbase, vircurex
    +
    +test each crypto (btc, ltc, nme, etc.)
    +test each exchange?
    
     
  • David Rader

    David Rader - 2014-05-30
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -16,9 +16,9 @@
    
     /date formatter (tests different 'types' of date formats)
      * none
    - ** CRYPTOTRADE:*, CAVIRTEX, COINBASE, VIRCUREX, KRAKEN
    + ** CRYPTOTRADE, CAVIRTEX, COINBASE, VIRCUREX, KRAKEN
      * int (1395104814994129)
    - ** MTGOX, BTCE:*, BITSTAMP, 
    + ** MTGOX, BTCE, BITSTAMP, 
      * str (Thu, 10 Apr 2014 12:31:52 -0000)
      ** BITCOINAVERAGE, CAMPBX
    
     
  • David Rader

    David Rader - 2014-05-30
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,8 +3,7 @@
     Additional unit tests (beyond baseline) should be created as separate tickets as/when needed.
    
     Baseline Unit Tests
    - * /exchange (unknown exchange, generic type)
    - ** note: need to test 'custom' type in separate unit test
    + * /exchange (unknown exchange, generic type)  note: need to test 'custom' type in separate unit test
      * /response moniker format
      * /response data format
      * verbose
    @@ -15,20 +14,14 @@
     Other baseline items to account for:
    
     /date formatter (tests different 'types' of date formats)
    - * none
    - ** CRYPTOTRADE, CAVIRTEX, COINBASE, VIRCUREX, KRAKEN
    - * int (1395104814994129)
    - ** MTGOX, BTCE, BITSTAMP, 
    - * str (Thu, 10 Apr 2014 12:31:52 -0000)
    - ** BITCOINAVERAGE, CAMPBX
    + * none: CRYPTOTRADE, CAVIRTEX, COINBASE, VIRCUREX, KRAKEN
    + * int (1395104814994129): MTGOX, BTCE, BITSTAMP, 
    + * str (Thu, 10 Apr 2014 12:31:52 -0000): BITCOINAVERAGE, CAMPBX
    
     bid/ask swaps
    - * bid/ask (normal)
    - ** bitcoinaverage, cryptotrade, bitstamp, campbx, kraken
    - * buy/sell (swap)
    - ** btce:*, mtgox
    - * none
    - ** cavirtex, coinbase, vircurex
    + * bid/ask (normal): bitcoinaverage, cryptotrade, bitstamp, campbx, kraken
    + * buy/sell (swap):btce, mtgox
    + * none: cavirtex, coinbase, vircurex
    
     test each crypto (btc, ltc, nme, etc.)
     test each exchange?
    
     
  • David Rader

    David Rader - 2016-02-06
    • status: accepted --> wont-fix
     
  • David Rader

    David Rader - 2016-02-06

    moved ticket to new project

     

Log in to post a comment.