aboutsummaryrefslogtreecommitdiffstats
path: root/test.pl
AgeCommit message (Collapse)Author
2015-06-14Strip 'Priority:' and 'Status:'Teddy Wing
These single lines are irrelevant and don't need to be included in output.
2015-06-14Change title message format (single line)Teddy Wing
Change the format so that the title message is on a single line instead of 3. Typically this will mean that the message will appear on 2 lines, which is still better than 3 lines, saving us some vertical space.
2015-06-14Construct start messageTeddy Wing
Make the start message to correspond to the test expectation. Grab the issue link first because that should tip us off that this is the text that will give us the starter data. Also chomp the newline from the test string to match the function result.
2015-06-14test.pl: Change status expected text to 'Status:'Teddy Wing
Make this 'Status:' instead of empty string. I might want to change this back later because the thought of seeing 'Status:' on a single line bothers me. But let's do this for now so this test passes and we can change it back if it looks terrible.
2015-06-14Get tests working to test `prettify_hipchat` subTeddy Wing
* test.sh: Create a temporary file `prettify_hipchat.pl` that contains only the `prettify_hipchat` subroutine. Then run `test.pl`. Finally remove the file we created to contain the subroutine. * Require `prettify_hipchat.pl` from test.pl. This file contains only the `prettify_hipchat` subroutine, allowing us to require it without concern.
2015-06-13test.pl: Add some real test casesTeddy Wing
* Use `Test::More` instead of `Test::Simple` so I can take advantage of the `is` test function * Get rid of my dummy test tests * Add some tests based on HipChat output for what I'd like that output to be prettified to
2015-05-31Initial commit. Learning about Perl testing.Teddy Wing
Created a basic test file using `Test::Simple` and this tutorial: http://search.cpan.org/dist/Test-Simple/lib/Test/Tutorial.pod