Skip to content
Snippets Groups Projects
  1. Jun 21, 2010
  2. Jun 01, 2010
  3. May 30, 2010
    • Iustin Pop's avatar
      Modify the test runner to show test exceptions · 8c5652f6
      Iustin Pop authored
      QuickCheck's batch driver (at least v1) doesn't show the test aborts,
      but simply discards the specific exception and increases the abort
      count. This makes it hard to debug the tests, so we modify our own test
      wrapper (which so far only tracked total failures) to show any
      exceptions.
      8c5652f6
  4. May 27, 2010
  5. May 20, 2010
    • Iustin Pop's avatar
      Add more unit tests for allocation/balance · 3fea6959
      Iustin Pop authored
      The patch adds some simple unit-tests for both the allocation function
      (we can allocate small instances on an empty cluster, we can allocate in
      tiered more starting from any size) and the balancing functions (one
      single instance is placed optimally, a full cluster plus an empty node
      can be rebalanced). The coverage has increased greatly, since this is
      the bulk of the algorithm/code.
      
      Also, the cluster tests are now being run with different options, since
      they are much slower.
      3fea6959
    • Iustin Pop's avatar
      Change some test constants · 49f9627a
      Iustin Pop authored
      First, we reduce the max size of the disks, since Int on 32bits will
      overflow for big simulated clusters. This is a real issue, that will
      need fixing in real life, but for now we just "silence" this test.
      
      Second, we increase the amount of time a test is allowed to run,
      otherwise on slower computers some tests might time-out.
      49f9627a
  6. Oct 15, 2009
    • Iustin Pop's avatar
      More hlint fixes · 3a3c1eb4
      Iustin Pop authored
      This makes (for now) the code hlint-clean. This is per se not a huge
      gain, but it allows easier tracking of regressions in style later
      (one-two new violations are easier to diagnose when not hidden among 20
      “known” ones).
      3a3c1eb4
  7. Oct 14, 2009
  8. Sep 29, 2009
    • Iustin Pop's avatar
      Make the test suite return an reasonable exit code · 38f536cb
      Iustin Pop authored
      Test.QuickCheck.Batch.runTests doesn't return any error statistics,
      which makes the test suite just display errorrs and always exit with
      exit code 0. This is not good, since one cannot then actually batch run
      tests.
      
      This patch adds a wrapper over Batch.run which also modifies a passed
      IORef Int to keep track of how many test failures or test aborts we had.
      This makes it easy then to exit with an appropriate exit code.
      38f536cb
  9. Aug 31, 2009
  10. Jun 01, 2009
Loading