Giter Site home page Giter Site logo

p5-dist-zilla-plugin-stenciller-mojolicioustests's Introduction

NAME

Dist::Zilla::Plugin::Stenciller::MojoliciousTests - Create Mojolicious tests from text files parsed with Stenciller

Requires Perl 5.10+ Travis status Distribution kwalitee CPAN Testers result coverage 98.1%

VERSION

Version 0.0200, released 2016-03-23.

SYNOPSIS

; in dist.ini
; these are the defaults:
[Stenciller::MojoliciousTests]
source_directory = examples/source
file_pattern = .+\.stencil
template_file = examples/source/template.test
output_directory = t

DESCRIPTION

Dist::Zilla::Plugin::Stenciller::MojoliciousTests uses Stenciller and Stenciller::Plugin::ToMojoliciousTest to turn stencil files in source_directory (that matches the file_pattern) into test files in output_directory by applying the template_file.

This Dist::Zilla plugin does the FileGatherer role.

ATTRIBUTES

source_directory

Path to where the stencil files are.

output_directory

Path to where the generated files are saved.

file_pattern

This is put inside a regular expression (with start and end anchors) to find stencil files in the source_directory. The output files will have the same basename, but the suffix is replaced by t.

template_file

The template file should contain use statements and such. The transformed contents returned from Stenciller::Plugin::ToMojoliciousTest will be placed after the contents of template_file. The template file is applied to each stencil file, so the number of generated test files is equal to the number of stencil files.

SEE ALSO

SOURCE

https://github.com/Csson/p5-Dist-Zilla-Plugin-Stenciller-MojoliciousTests

HOMEPAGE

https://metacpan.org/release/Dist-Zilla-Plugin-Stenciller-MojoliciousTests

AUTHOR

Erik Carlsson [email protected]

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Erik Carlsson.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

p5-dist-zilla-plugin-stenciller-mojolicioustests's People

Contributors

csson avatar

Watchers

James Cloos avatar  avatar

p5-dist-zilla-plugin-stenciller-mojolicioustests's Issues

Tests fail with Stenciller 0.1400

Probably the same issue like Csson/p5-Dist-Zilla-Plugin-Stenciller-HtmlExamples#2

Statistical analysis (negative theta is bad):

****************************************************************
Regression 'mod:Stenciller'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']           1.0000          0.0000    72814787447599424.00
[1='eq_0.1301']       0.0000          0.0000       0.00
[2='eq_0.1302']       0.0000          0.0000       0.00
[3='eq_0.1400']      -1.0000          0.0000    -64216606451458568.00

R^2= 1.000, N= 33, K= 4
****************************************************************

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.