Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Vroom CPAN distribution.

Report information
The Basics
Id: 60054
Status: open
Priority: 0/
Queue: Vroom

People
Owner: Nobody in particular
Requestors: SPAZM [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.23
Fixed in: (no value)



Subject: request .t suffix for test files
Hello Ingy! Please include .t as an allowed extension. I include .t test files from my projects into my Vroom presentations. Having them included as .pl files clutters the directory and loses the ability to differentiate between .pl and .t files in vim. I use a different compiler setting for .t files than perl files. In my .pl and .pm files, ':make' runs perl -c. With .t :make runs perlprove to run all of my tests. Being able to run ':make' live in my presentation to run my included test file seems ridiculously awesome. vim.org file for perlprove.pm http://www.vim.org/scripts/script.php?script_id=1319 au BufRead,BufNewFile *.t setfiletype=perl | compiler perlprove Thanks Ingy!
git patch for one line change to add .t extension.
Subject: 0001-add-test-and-t-types-to-map-to-.t.patch
From c9a849012c38a784ad3a80058018400ee98fc6d1 Mon Sep 17 00:00:00 2001 Date: Tue, 3 Aug 2010 17:04:42 -0700 Subject: [PATCH] RT 60054 -- add 'test' and 't' types to map to .t https://rt.cpan.org/Ticket/Display.html?id=60054 I'd like to include my .t test files in my presentations. I want them to be .t instead of .pl files in the presentation because my .vimrc treats .t files differently than .pl for the make command. --- lib/Vroom.pm | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/Vroom.pm b/lib/Vroom.pm index ff4fb22..1d5d5d6 100644 --- a/lib/Vroom.pm +++ b/lib/Vroom.pm @@ -438,6 +438,7 @@ sub formatNumber { my $types = { # add pl6 and py3 perl => 'pl', pl => 'pl', pm => 'pm', + test => 't', t => 't', ruby => 'rb', rb => 'rb', python => 'py', py => 'py', haskell => 'hs', hs => 'hs', -- 1.7.0.4