~ubuntu-branches/ubuntu/trusty/gmetrics/trusty

« back to all changes in this revision

Viewing changes to src/test/groovy/org/gmetrics/test/RunCodeNarcAgainstSourceCodeTest.groovy

  • Committer: Package Import Robot
  • Author(s): Miguel Landaeta, Miguel Landaeta, tony mancill
  • Date: 2012-01-18 20:57:50 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120118205750-68fv86p7fs8xz470
Tags: 0.5-1
[Miguel Landaeta]
* New upstream release.
* Remove patch ftbfs_613266.diff since it was merged upstream.
* Update dates in copyright file.

[tony mancill]
* Set DMUA flag.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2010 the original author or authors.
 
2
 * Copyright 2011 the original author or authors.
3
3
 * 
4
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
5
 * you may not use this file except in compliance with the License.
15
15
 */
16
16
package org.gmetrics.test
17
17
 
18
 
 
19
18
/**
20
19
 * Run CodeNarc against the project source code. Fail on configured rule violations.
21
20
 *
22
21
 * @author Chris Mair
23
 
 * @version $Revision: 118 $ - $Date: 2010-07-10 21:55:10 -0400 (Sat, 10 Jul 2010) $
 
22
 * @version $Revision: 188 $ - $Date: 2011-12-12 21:27:11 -0500 (Mon, 12 Dec 2011) $
24
23
 */
25
 
class RunCodeNarcAgainstSourceCodeTest extends AbstractTestCase {
 
24
class RunCodeNarcAgainstSourceCodeTest extends org.gmetrics.test.AbstractTestCase {
26
25
 
27
26
    private static final GROOVY_FILES = '**/*.groovy'
28
27
    private static final RULESET_FILES = 'codenarc/CodeNarcRuleSet.groovy'
39
38
 
40
39
           fileset(dir:'src/main/groovy') {
41
40
               include(name:GROOVY_FILES)
 
41
               exclude(name:'**/Temp.groovy')   // TODO Remove when we get rid of this temporary file
42
42
           }
43
43
           fileset(dir:'src/test/groovy') {
44
44
               include(name:GROOVY_FILES)
45
45
           }
46
46
 
 
47
           //report(type:'html') { }
 
48
 
47
49
           report(type:'text') {
48
50
               option(name:'writeToStandardOut', value:true)
49
51
           }