Giter Site home page Giter Site logo

Comments (3)

adamkennedy avatar adamkennedy commented on June 18, 2024

Read the philosophy behind Test::Inline in the docs.

The idea is to keep tests which are tightly related to a single method as
close to the code as possible so free complete implementation code/test/doc
is all in one place.

It helps me with PPI, where the code is so crazily split out the way it is,
and there has been enormous refactoring in the past.

But I recognise that with additional developer resources this problem goes
away to some extent, so I'm fine with move the tests away from the code if
it well make the test sir les surprising for others.

Adam
On Dec 18, 2013 8:36 AM, "Christian Walde" [email protected] wrote:

I just realized that a whole bunch of test scripts that i need to change
are generated from POD at runtime. Since having code in comments is a
terrible idea, i'd like to extract them and put them into scripts
permanently. Any particular opposition to this?


Reply to this email directly or view it on GitHubhttps://github.com//issues/12
.

from ppi.

wchristian avatar wchristian commented on June 18, 2024

Yeah, i understand the idea, i just find myself very nervous by code in what amounts to comments. It'd be much nicer if it was a test method on the class, called by the .t file.

That said, thanks for not minding a split much. Since it'll be just removing the comments after making sure the test files match them, that shouldn't be tricky.

from ppi.

wchristian avatar wchristian commented on June 18, 2024

This has been adressed in #42 and merged into master.

from ppi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.