8000 no more .proverc (all options in Makefile, omit --jobs since we would… · repos-javascript-compilers/JSX@3210f84 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3210f84

Browse files
committed
no more .proverc (all options in Makefile, omit --jobs since we would like to run the tests in exact order)
1 parent 9b96248 commit 3210f84

File tree

5 files changed

+25
-3
lines changed

5 files changed

+25
-3
lines changed

.proverc

Lines changed: 0 additions & 2 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
test:
3-
prove --recurse
3+
prove --recurse --timer
44

55
.PHONY: test

t/compile_error.t

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#! /usr/bin/perl
2+
3+
use strict;
4+
use warnings;
5+
use File::Temp qw(tempdir);
6+
use Test::More;
7+
8+
my @files = grep { $_ !~ /\.skip\.jsx$/ } <t/compile_error/*.jsx>;
9+
10+
plan tests => scalar @files;
11+
12+
for my $file (@files) {
13+
ok system("bin/jsx $file > /dev/null 2>&1") != 0, $file;
14+
}

t/compile_error/001.unknown-var.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Test {
2+
static function run() : void {
3+
foo = 1;
4+
}
5+
}

t/compile_error/002.unknown-func.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Test {
2+
static function run() : void {
3+
foo();
4+
}
5+
}

0 commit comments

Comments
 (0)
0