Skip to content

Commit 42881a9

Browse files
committed
Backed out directory debugging printlns.
1 parent fae2a2e commit 42881a9

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

test/lint_test.dart

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,7 @@ import 'package:dart_lint/src/rules.dart';
1616
import 'package:path/path.dart' as p;
1717
import 'package:unittest/unittest.dart';
1818

19-
Directory get ruleDir {
20-
21-
print('CWD: ${Directory.current.path}');
22-
print('CWD: ${Directory.current.absolute.path}');
23-
24-
Directory dir = new Directory('test/rules');
25-
if (dir.existsSync()) {
26-
return dir;
27-
}
28-
29-
Directory testDir = new File(Platform.script.path).parent;
30-
Directory rulesDir = new Directory(testDir.path + '/rules');
31-
32-
print('trying... ${rulesDir.absolute.path}');
33-
return rulesDir;
34-
}
19+
const String ruleDir = 'test/rules';
3520

3621
/// Linter engine tests
3722
void defineLinterEngineTests() {
@@ -132,7 +117,7 @@ void defineRuleTests() {
132117

133118
//TODO: if ruleDir cannot be found print message to set CWD to project root
134119
group('rule', () {
135-
for (var entry in ruleDir.listSync()) {
120+
for (var entry in new Directory(ruleDir).listSync()) {
136121
if (entry is! File || !entry.path.endsWith('.dart')) continue;
137122
var ruleName = p.basenameWithoutExtension(entry.path);
138123
testRule(ruleName, entry);

0 commit comments

Comments
 (0)