Skip to content

Commit

Permalink
Add basic test for OpenQA::WebAPI::Description
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarocarvajald committed Feb 12, 2018
1 parent 0cddaa1 commit d56cab8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions t/31-api_descriptions.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (C) 2017 SUSE LLC
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

BEGIN {
unshift @INC, 'lib';
}

use Mojo::Base -strict;
use Test::More;
use Test::Mojo;
use Test::Warnings;

use_ok('OpenQA::WebAPI::Description', qw(get_pod_from_controllers set_api_desc));
$ENV{OPENQA_CODEBASE} = ".";
get_pod_from_controllers();

done_testing;
1 change: 1 addition & 0 deletions t/testrules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ seq:
- ./t/25-cache.t
- ./t/27-errorpages.t
- ./t/30-test_parser.t
- ./t/31-api_descriptions.t
- ./t/basic.t
- ./t/deploy.t
- ./t/full-stack.t
Expand Down

0 comments on commit d56cab8

Please sign in to comment.