Switch branches/tags
Nothing to show
Commits on Nov 8, 2014
Commits on Oct 9, 2014
  1. Upgrading Makefile for OSX

    bfad committed Oct 9, 2014
Commits on Sep 13, 2013
Commits on Sep 11, 2013
  1. Adding the ability for the library to output color in the terminal

    bfad committed Sep 11, 2013
    Created tests and code for color output to the terminal. The library has this
    turned off by default, but I think the command-line tool should enable it by
Commits on Jan 16, 2013
Commits on Dec 18, 2012
  1. Updating to a saner make file

    bfad committed Dec 18, 2012
    Can now make and install the library and the binary either individually or all
    at once.
  2. The lspec command was overhauled and got new features

    bfad committed Dec 18, 2012
    New features:
      - Documentation output (no tests for this yet)
      - Can now specify a CSV of extensions to treat as lasso files
      - Will display how to use the command if run improperly or with -h option
Commits on May 24, 2012
Commits on Sep 26, 2011
  1. Adding tests for local scope behavior & adjusting it for tests

    bfad committed Sep 26, 2011
    I had [givenBlock->asCopyDeep] both testGroups and tests, but I've changed that
    to just be testGroups. That way, [beforeEach] and [beforeAll] and [afterEach]
    methods will be able to affect the locals for the tests.
Commits on Sep 23, 2011
  1. Changing the way locals are handled & updating tests

    bfad committed Sep 23, 2011
    Example Code
    describe('something') => {
        with item in #my_map do {
          local(my_val) = #item->find('value')
            describe('in some context') => {
              it('does something') => {
    [describe] and [it] take their [givenBlock] and add it to one of an
    [lspec_testSuite] object's internal data members. The object later invokes
    those blocks in a prescribed order. Since that is after the query expression
    has finished iterating, [#my_val] is set to the last item in the iteration
    (and so is [#item]).
    I changed the code to store a deep copy of the [givenBlock] instead, and this
    fixes the problem - the locals keep the values from when the method was called.
    I haven't decided whether or not [beforeXXX] and [afterXXX] need this too.
Commits on Sep 10, 2011
  1. Adding [expect->error] that doesn't any arguments

    bfad committed Sep 10, 2011
    [expect->error] with no arguments passes if any error is in the given block
    except for [error_noError], of course.
Commits on Sep 8, 2011
Commits on Sep 7, 2011
  1. Adding more tests for the command and tweaking setup

    bfad committed Sep 7, 2011
    Added the tests for multiple folders and nested folders.
    Running into problems with having the local "test_file" used in sub-groups and
    the cleanup of the sub-group affecting its parent group. I made an outer group
    delete the folder each test and recreate it.
Commits on Aug 31, 2011
Commits on Aug 30, 2011
  1. Starting to work on the tests for directory arguments

    bfad committed Aug 30, 2011
    When the command line tool is passed a directory, it needs to run all the test
    files in that directory and any of that directory sub directory. So far I have
    the tests working for if there is no test file in the directory.
Commits on Aug 29, 2011
  1. A bunch of pending test describing command-line passed folders functi…

    bfad committed Aug 29, 2011
    Test describing how the command-line tool should behave if passed a folder or a
    series of folder paths or no arguments at all.
Commits on Aug 22, 2011
  1. Adding the parent suite to test groups, tests, and expectations

    bfad committed Aug 22, 2011
    To get rid of having [lspec->] in the main types, we are storing the parent
    [lspec_testSuite] in each of the types.
Commits on Aug 19, 2011
  1. Updating [lspec->runTime] test and fixing timing bug

    bfad committed Aug 19, 2011
    Nested test groups were adding their runtime to the total which meant that the
    time it took them to run was being counted multiple times - once by them and
    once by each of their parent test groups.
Commits on Aug 18, 2011
  1. Added tests and code for [afterEach] block

    bfad committed Aug 18, 2011
    Again, only runs the immediate parent test group's [afterEach] block and should
    probably be expanded to then run all the parent test groups' blocks.
  2. Adding test & code for [beforeEach] blocks

    bfad committed Aug 18, 2011
    Currently, the [beforeEach] block of your immediate test group is the one that
    is called. Should probably make all the before blocks from the root level on
    down run beforeEach block first.
  3. Bug fix dealing with [lspec_testSuite->getCurrentTestGroup]

    bfad committed Aug 18, 2011
    Since [lspec_testSuite->getCurrentTestGroup] was always returning the last
    group in the array, all the sub-groups and sub-tests were being stashed in the
    last sub-test group's object. This caused failure outputs to always appear as
    coming from whichever top-level test group you were at > its last sub-test
    group > it's last sub-test group > etc.
  4. The test should really have been 2 tests

    bfad committed Aug 18, 2011
    The "and" in the test label is a sign that you might want to split up the test.
  5. Refactoring lspec command tests

    bfad committed Aug 18, 2011
Commits on Aug 17, 2011
  1. Adding [expect(expect, got)] method for better diagnostics messages

    bfad committed Aug 17, 2011
    When [expect(exepect == got)] fails, you get "expected: true" and "got: false"
    which isn't the greatest message. The new [expect(expect, got)] compares for
    equality and if it doesn't find it, then the first value is the "expected" one
    and the second is the "got" value in the failure message.
    I have also updated the lspec command test spec to use this method.
  2. Adding .DS_Store to .gitignore

    bfad committed Aug 17, 2011