Ticket #1632 (closed proposal: fixed)

Opened 6 years ago

Last modified 4 years ago

Test.HUnit documentation

Reported by: guest Owned by:
Priority: normal Milestone: Not GHC
Component: libraries (other) Version: 6.10.1
Keywords: Cc: himself@…, richardg@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I'd like to contribute Haddock documentation for HUnit.

Where there was documentation in comments in the original source code, I have generally used that - but it was mostly for the implementation of the text-based test runner, not the stuff that a typical library user would need for making assertions, constructing test cases etc. I've focused on the latter.

Afaik Haddock doesn't work with literate Haskell files, so I have converted to non-literate files. No code changes - just comments/docs.

Attachments

hunit-docs.patch Download (48.4 KB) - added by guest 6 years ago.
Darcs patch
Test-HUnit-Base.html Download (39.3 KB) - added by himself@… 6 years ago.
HTML docs produced by Haddock
Test-HUnit-Lang.html Download (8.5 KB) - added by himself@… 6 years ago.
HTML docs produced by Haddock
Test-HUnit-Terminal.html Download (6.6 KB) - added by himself@… 6 years ago.
HTML docs produced by Haddock
Test-HUnit-Text.html Download (12.9 KB) - added by himself@… 6 years ago.
HTML docs produced by Haddock
FIX-1632-Test.HUnit-documentation.patch Download (133.0 KB) - added by RichardG 4 years ago.
Darcs patch

Change History

Changed 6 years ago by guest

Darcs patch

Changed 6 years ago by guest

  • cc himself@… added

Changed 6 years ago by himself@…

HTML docs produced by Haddock

Changed 6 years ago by himself@…

HTML docs produced by Haddock

Changed 6 years ago by himself@…

HTML docs produced by Haddock

Changed 6 years ago by himself@…

HTML docs produced by Haddock

Changed 5 years ago by RichardG

The patch from this ticket and documentation from another source were combined and uploaded to  http://code.haskell.org/HUnit.

While there might be some fine tuning left to do, the documentation is now in a much better state than in the stock 6.8.2 version. Unless there are major errors (e.g., parts of the documentation are wrong), I recommend that this ticket be closed and further issues and enhancements be handled through other tickets. Imperfect or, even, partial documentation is better than none.

Changed 5 years ago by RichardG

  • cc richardg@… added

Changed 5 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Closing the ticket as suggested.

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple

Changed 4 years ago by RichardG

  • status changed from closed to reopened
  • version changed from 6.6.1 to 6.10.1
  • resolution fixed deleted

Reopenening ticket; documentation didn't make it into library.

Changed 4 years ago by RichardG

Darcs patch

Changed 4 years ago by RichardG

  • status changed from reopened to closed
  • resolution set to fixed

FIX-1632-Test.HUnit-documentation.patch adds documentation to the Test.HUnit library. In addition to API documentation, it includes a quick overview of how to use the library (the original patch was rejected because it did not have this). The version was also bumped from 1.2.0.3 to 1.2.0.4.

It has been tested with GHC 6.10.1 on Mac OS X 10.5 (Intel), Ubuntu Linux 8.10, and Windows Vista.

There is a small issue with it: runghc Setup.hs test does not work on Windows; the test files need to be invoked manually. Another bug will be opened to deal with this.

Note: See TracTickets for help on using tickets.