Skip to content

Commit

Permalink
Add crystal tool format tests
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Apr 10, 2024
1 parent de88dd1 commit 7d4ba05
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/helper/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ function shard_checkout() {
function crystal_spec() {
$CRYSTAL spec --junit_output ".junit/interpreter-std_spec.$BATS_TEST_NAME.xml"
}

function crystal_format() {
$CRYSTAL tool format
}
62 changes: 62 additions & 0 deletions test/libraries.bats
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ function setup() {
shard_checkout https://github.com/Sija/backtracer.cr

crystal_spec

crystal_format
}

# bats test_tags=openssl
Expand All @@ -23,75 +25,99 @@ function setup() {
shard_checkout https://github.com/crystal-loot/exception_page

crystal_spec

crystal_format
}

@test "luislavena/radix" {
shard_checkout https://github.com/luislavena/radix

crystal_spec

crystal_format
}

@test "ysbaddaden/pool" {
shard_checkout https://github.com/ysbaddaden/pool

crystal_spec

crystal_format
}

@test "luckyframework/habitat" {
shard_checkout https://github.com/luckyframework/habitat

crystal_spec

crystal_format
}

@test "luckyframework/wordsmith" {
shard_checkout https://github.com/luckyframework/wordsmith

crystal_spec

crystal_format
}

@test "crystal-community/future.cr" {
shard_checkout https://github.com/crystal-community/future.cr

crystal_spec

crystal_format
}

@test "schovi/baked_file_system" {
skiponwindows "Does not build"
shard_checkout https://github.com/schovi/baked_file_system

crystal_spec

crystal_format
}

@test "jeromegn/kilt" {
skiponwindows "Does not build"
shard_checkout https://github.com/jeromegn/kilt

crystal_spec

crystal_format
}

@test "sumpycr/stumpy_core" {
shard_checkout https://github.com/stumpycr/stumpy_core

crystal_spec

crystal_format
}

@test "luckyframework/lucky_task" {
shard_checkout https://github.com/luckyframework/lucky_task

crystal_spec

crystal_format
}

@test "spider-gazelle/bindata" {
shard_checkout https://github.com/spider-gazelle/bindata

crystal_spec

crystal_format
}

# bats test_tags=openssl
@test "kemalcr/kemal-session" {
shard_checkout https://github.com/kemalcr/kemal-session

crystal_spec

crystal_format
}

# bats test_tags=openssl
Expand All @@ -104,6 +130,8 @@ function setup() {
shard_checkout https://github.com/kemalcr/kemal

crystal_spec

crystal_format
}

@test "luckyframework/teeplate" {
Expand All @@ -112,19 +140,25 @@ function setup() {
shard_checkout https://github.com/luckyframework/teeplate

crystal_spec

crystal_format
}

@test "icyleaf/markd" {
shard_checkout https://github.com/icyleaf/markd

crystal_spec

crystal_format
}

@test "crystal-lang/json_mapping.cr" {
skiponwindows "Does not build"
shard_checkout https://github.com/crystal-lang/json_mapping.cr

crystal_spec

crystal_format
}

@test "stumpycr/stumpy_png" {
Expand All @@ -133,20 +167,26 @@ function setup() {
shard_checkout https://github.com/stumpycr/stumpy_png

crystal_spec

crystal_format
}

@test "luckyframework/shell-table.cr" {
skip "Specs are failing"
shard_checkout https://github.com/luckyframework/shell-table.cr

crystal_spec

crystal_format
}

@test "phoffer/inflector.cr" {
skip "Specs are failing"
shard_checkout https://github.com/phoffer/inflector.cr

crystal_spec

crystal_format
}

# bats test_tags=cmake
Expand All @@ -156,19 +196,25 @@ function setup() {

$CRYSTAL src/ext/build_ext.cr
crystal_spec

crystal_format
}

@test "icyleaf/halite" {
skiponwindows "Specs are failing"
shard_checkout https://github.com/icyleaf/halite

crystal_spec

crystal_format
}

@test "jwaldrip/admiral.cr" {
shard_checkout https://github.com/jwaldrip/admiral.cr

crystal_spec

crystal_format
}

@test "jeromegn/slang" {
Expand All @@ -180,45 +226,59 @@ function setup() {
shard_checkout https://github.com/jeromegn/slang

crystal_spec

crystal_format
}

@test "vladfaust/time_format.cr" {
shard_checkout https://github.com/vladfaust/time_format.cr

crystal_spec

crystal_format
}

@test "mamantoha/http_proxy" {
skiponwindows "Specs are failing"
shard_checkout https://github.com/mamantoha/http_proxy

crystal_spec

crystal_format
}

@test "crystal-community/msgpack-crystal" {
shard_checkout https://github.com/crystal-community/msgpack-crystal

crystal_spec

crystal_format
}

@test "spider-gazelle/openssl_ext" {
skiponwindows "Specs are failing"
shard_checkout https://github.com/spider-gazelle/openssl_ext

crystal_spec

crystal_format
}

@test "gdotdesign/cr-dotenv" {
shard_checkout https://github.com/gdotdesign/cr-dotenv

crystal_spec

crystal_format
}

@test "maiha/pretty.cr" {
skip "Specs are failing"
shard_checkout https://github.com/maiha/pretty.cr

crystal_spec

crystal_format
}

@test "straight-shoota/crinja" {
Expand All @@ -228,6 +288,8 @@ function setup() {

crystal_spec

crystal_format

cd examples
bats integration_test.bats
}
8 changes: 8 additions & 0 deletions test/testing.bats
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,33 @@ function setup() {
shard_checkout https://github.com/ysbaddaden/minitest.cr

crystal_spec

crystal_format
}

@test "arctic-fox/spectator" {
skip "Does not build"
shard_checkout https://gitlab.com/arctic-fox/spectator

crystal_spec

crystal_format
}

@test "crystal-community/timecop.cr" {
skiponwindows "Timeout"
shard_checkout https://github.com/crystal-community/timecop.cr

crystal_spec

crystal_format
}

@test "manastech/webmock.cr" {
skiponwindows "Specs are failing"
shard_checkout https://github.com/manastech/webmock.cr

crystal_spec

crystal_format
}
2 changes: 2 additions & 0 deletions test/tools.bats
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ function setup() {
fi

crystal_spec

crystal_format
}

0 comments on commit 7d4ba05

Please sign in to comment.