TestRail::Utils - Utilities for the testrail command line functions, and their main loops.
version 0.052
Print the perldoc for $0 and exit.
Wait for user input and return it.
Wait for specified keys via userInput, and put them into $options HASHREF, if they are not already defined. Returns modified $options HASHREF. Dies if the user provides no value.
Parse .testrailrc in the provided home directory.
Returns:
ARRAY - (apiurl,password,user)
Analyze TAP output by prove and look for filename boundaries (no other way to figure out what file is run). Long story short: don't end 'unknown' TAP lines with any number of dots if you don't want it interpreted as a test name. Apparently this is the TAP way of specifying the file that's run...which is highly inadequate.
Inputs:
STRING LINE - some line of TAP
STRING filename of the test that output the TAP.
Returns ARRAY of TAP output for the various test files therein. file is optional, will read TAP from STDIN if not passed.
Return the relevant project definition, plan, run and milestone definition HASHREFs for the provided options.
Dies in the event the project/plan/run could not be found.
Convenience method for binaries and testing. Returns a new TestRail::API when passed an options hash such as is built by most of the binaries, or returned by parseConfig.
Has a special 'mock' hash key that can only be used by those testing this distribution during 'make test'.
Thanks to cPanel Inc, for graciously funding the creation of this module.
George S. Baugh <teodesian@cpan.org>
The development version is on github at https://github.com/teodesian/TestRail-Perl and may be cloned from git://github.com/teodesian/TestRail-Perl.git
This software is copyright (c) 2022 by George S. Baugh.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install TestRail::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TestRail::API
CPAN shell
perl -MCPAN -e shell install TestRail::API
For more information on module installation, please visit the detailed CPAN module installation guide.