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

Ability to selectively run tests. #71

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Commits on Jan 8, 2014

  1. A start on being able to select specific tests to run. Looks like this

    will work.
    
    Still todo:
    * make filterModuleContent use lineNumEnd
    * write tests around error conditions
    * wire all of this into Run.hs
    Ben Kolera committed Jan 8, 2014
    Configuration menu
    Copy the full SHA
    89d478a View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2014

  1. Integrated with Run.hs

    But now I get a weird linking error.
    
    vagrant at localhost in ~/src/personal/haskell/doctest
    $ cabal build
    Building doctest-0.9.10...
    Preprocessing library doctest-0.9.10...
    [14 of 15] Compiling Run              ( src/Run.hs, dist/build/Run.o )
    In-place registering doctest-0.9.10...
    Preprocessing executable 'doctest' for doctest-0.9.10...
    Linking dist/build/doctest/doctest ...
    /home/vagrant/src/personal/haskell/doctest-haskell/dist/build/libHSdoctest-0.9.10.a(Run.o): In function `s8rZ_info':
    (.text+0x12f2): undefined reference to `doctestzm0zi9zi10_TestSelector_extractTestSelectorszuzz0_closure'
    /home/vagrant/src/personal/haskell/doctest-haskell/dist/build/libHSdoctest-0.9.10.a(Run.o): In function `s8qO_info':
    (.text+0xc86): undefined reference to `doctestzm0zi9zi10_TestSelector_zdfShowArgParserErrorzuzdcshow_info'
    /home/vagrant/src/personal/haskell/doctest-haskell/dist/build/libHSdoctest-0.9.10.a(Run.o): In function `s8Ca_info':
    (.text+0xe3c): undefined reference to `doctestzm0zi9zi10_TestSelector_filterModules_info'
    /home/vagrant/src/personal/haskell/doctest-haskell/dist/build/libHSdoctest-0.9.10.a(Run.o): In function `s8rZ_info':
    (.text+0x1303): undefined reference to `doctestzm0zi9zi10_TestSelector_extractTestSelectorszulgo_info'
    /home/vagrant/src/personal/haskell/doctest-haskell/dist/build/libHSdoctest-0.9.10.a(Run.o): In function `doctestzm0zi9zi10_Run_doctest1_srt':
    (.data+0x238): undefined reference to `doctestzm0zi9zi10_TestSelector_extractTestSelectorszulgo_closure'
    /home/vagrant/src/personal/haskell/doctest-haskell/dist/build/libHSdoctest-0.9.10.a(Run.o): In function `doctestzm0zi9zi10_Run_doctest1_srt':
    (.data+0x240): undefined reference to `doctestzm0zi9zi10_TestSelector_zdfShowArgParserErrorzuzdcshow_closure'
    collect2: error: ld returned 1 exit stat
    Ben Kolera committed Jan 9, 2014
    Configuration menu
    Copy the full SHA
    2e4752a View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2014

  1. Almost done. Works end to end!

    Could do with some tests for arg parsing failures, still.
    Ben Kolera committed Jan 11, 2014
    Configuration menu
    Copy the full SHA
    d9d6a56 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    82c41d2 View commit details
    Browse the repository at this point in the history
  3. And a readme update.

    Ben Kolera committed Jan 11, 2014
    Configuration menu
    Copy the full SHA
    1945d64 View commit details
    Browse the repository at this point in the history
  4. Removing that extra s.

    Ben Kolera committed Jan 11, 2014
    Configuration menu
    Copy the full SHA
    e62ea23 View commit details
    Browse the repository at this point in the history
  5. That shouldn't have been removed. Reverting.

    Ben Kolera committed Jan 11, 2014
    Configuration menu
    Copy the full SHA
    6e91df7 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2014

  1. Has line ranges that work from the start or end of file.

    Also much better error handling.
    Ben Kolera committed Jan 12, 2014
    Configuration menu
    Copy the full SHA
    e730fa2 View commit details
    Browse the repository at this point in the history