REM State

19 Jun

Tests Progressing

Just for anyone who’s curious as to what the heck I’m doing, I have a good chunk of tests up and running. Specifically, I can automatically:

  • Create posts
  • Create series
  • Delete posts
  • Auto-validate…
    • The table of contents for each post in a series
    • The prev/next links for each post in a series
    • The existence and proper ordering of the re-ordering drop-down
    • The existence of appropriate series in the add-to-series drop-down

I have coded up all my tests for basic series manipulation, and I’m presently working on the test set for series manipulation involving drafts. These are huge, ugly, full-functionality tests, so they’ve taken a little while to write and get the kinks out of. I keep meaning to check the darn things in, but I keep putting it off. I guess I’ll make a commitment, and say I’ll get them in tonight — after all, I’ve got to show that I am actually working on something. :)

Still to do, test wise (roughly in order)…

  1. Series manipulations with drafts
  2. Deleting posts in series
  3. Database upgrades
  4. Basic configuration checks
  5. Corner cases and security
    • Weird series names
    • Series containing weird post names
    • Invalid/impossible series manipulation requests
    • Weird configuration setups

3 Responses to “Tests Progressing”

  1. AvatarAnanda
    1

    Sounds ambitious. Looking forward to it….

    Reply to this comment.
  2. Avatarross
    2

    hey,
    Love the in series plugin. is there a way to have the TOC appear at the end of a post instead of the beginning? i feel as my series get longer my actual content will get pushed further and further down the page. thanks!

    Reply to this comment.
  3. AvatarQuandary
    3
    Author Comment

    @Ross

    First, a small digression… :)

    I’ve gotten this question (”How do I move the ToC to the end of the post?”) a couple of times now, which means that I’ve made the interface too complex. However, I can implement the old/simple interface in terms of the complex interface, and then give an option for users to either use a “basic” or “advanced” interface. I filed bug 22 a while back for just this purpose. Hopefully, this will make life a lot easier for you down the road (though it isn’t much help right this instant).

    Now, to answer your question:

    1. From the WordPress admin pages, go to the “Options” tab and the “Series” sub-tab
    2. Look at the value in the “Post layout” field
    3. Move the %content token from the middle to the beginning of that field
    4. Click the “Update Options” button.

    The %toc is where the table of contents will go, and the %content is where your post’s text will go. Just make sure that the %toc comes after the %content.

    Reply to this comment.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Comment Preview:

© 2008 REM State | Entries (RSS) and Comments (RSS)

Global Positioning System Gazettewordpress logo