Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Tests for PM code?

by LanX (Bishop)
on Nov 18, 2017 at 17:02 UTC ( #1203744=monkdiscuss: print w/replies, xml ) Need Help??

Hi

this might be of general interest, so I'm not posting it in the Inner Scriptorium

I think I have identified the code which renders markup in the monastery ParseLinksInContent

But ...

  • Where are the tests?
  • Are there special node types used to test code nodes?
  • How are pmdev supposed to test new code?

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re: Tests for PM code?
by Corion (Pope) on Nov 18, 2017 at 18:05 UTC

    Teasing out the code from nodes into (testable) subroutines would be great.

    There are no tests, and you're supposed to write your code without bugs. And be around when it goes live to do some emergency fixes.

      Well htmlcode nodes are essentially functions, the one I mentioned calls other htmlcode functions.

      It should be feasable to write test nodes for those nodes.

      Is it possible to use/install test modules?

      I can also see obscure pages which were used by demerphq and or jdporter to mock important features.

      There are also mentions of a "test server" and then other mentions that it is down.

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

        Yes, there was a test instance run by me, but that has fallen prey to server moves.

        I should get the documentation together on how to run a local instance of the engine...

Re: Tests for PM code?
by Anonymous Monk on Nov 18, 2017 at 18:05 UTC
      > I think pmdev need to see jdporter's treehouse

      Warning: This thread can be slow to load, as it contains several very large nodes

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://1203744]
Approved by hippo
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2017-12-13 17:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (371 votes). Check out past polls.

    Notices?