Giter Site home page Giter Site logo

pod-test-code's Introduction

Actions Status

NAME

Pod::Test::Code - Tests code blocks from pod

SYNOPSIS

# Your test:
use Pod::Test::Code;
test-code-snippets; # It will test all code blocks from all modules
                    # declared as `provides` on your META6.json

# or

test-code-snippets "My::Module::To::Be::Tested";

On your docs (please, take a look at this pod):

is 1, 1, "This seems to be working"; # Pod is using:
                                     # =begin code :lang<raku>
note "bla"; # Pod is using:
            # =begin code :lives-ok("testing lives ok") :lang<raku>
die "bla"; # Pod is using:
           # =begin code :dies-ok("testing dies ok") :lang<raku>
note "bla"; # Pod is using:
            # =begin code :subtest("blablabla") :lang<raku>
{ "bla": "ble" }
is "test.json".IO.slurp.chomp, q|{ "bla": "ble" }|;
print 42 # OUTPUT: 42
say 42;
say 13;
say 3.14;

# OUTPUT:
# 42
# 13
# 3.14

DESCRIPTION

Pod::Test::Code is a way to test your pod's code

AUTHOR

Fernando Correa de Oliveira [email protected]

COPYRIGHT AND LICENSE

Copyright 2021 Fernando Correa de Oliveira

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

pod-test-code's People

Contributors

fco avatar

Stargazers

 avatar

Watchers

 avatar

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.