Skip to content

Commit 5b402d3

Browse files
authored
Tidy up (#15)
* Remove unused files * Move LICENSE to root * Rename folder, improve docs
1 parent bda44e1 commit 5b402d3

24 files changed

+18
-182
lines changed

.rsync

-1
This file was deleted.

go/LICENSE LICENSE

File renamed without changes.

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
default:
2-
cd ruby-testdata && make
2+
cd testdata && make
33
cd go && make
44

55
clean:
6-
cd ruby-testdata && make clean
6+
cd testdata && make clean
77
cd go && make clean
88

99
.PHONY: default clean

TODO.md

-16
This file was deleted.

go/.github/ISSUE_TEMPLATE.md

-5
This file was deleted.

go/.github/PULL_REQUEST_TEMPLATE.md

-5
This file was deleted.

go/.rsync

-3
This file was deleted.

go/Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
include default.mk
22

3-
GOLDEN_JSONS = $(wildcard ../ruby-testdata/features/**/*.json)
4-
GENERATED_JSONS = $(patsubst ../ruby-testdata/features/%.json,acceptance/%.json,$(GOLDEN_JSONS))
3+
GOLDEN_JSONS = $(wildcard ../testdata/features/**/*.json)
4+
GENERATED_JSONS = $(patsubst ../testdata/features/%.json,acceptance/%.json,$(GOLDEN_JSONS))
55

66
.DELETE_ON_ERROR:
77

88
.tested: $(GENERATED_JSONS)
99

10-
acceptance/%.json: ../ruby-testdata/features/%.ndjson $(EXE) ../ruby-testdata/features/%.json
10+
acceptance/%.json: ../testdata/features/%.ndjson $(EXE) ../testdata/features/%.json
1111
mkdir -p $(@D)
1212
cat $< | \
1313
$(EXE) | \
14-
../ruby-testdata/neutralize-json | \
14+
../testdata/neutralize-json | \
1515
jq --sort-keys "." > \
1616
$@
1717
diff --unified $(word 3, $^) $@

ruby-testdata/.github/ISSUE_TEMPLATE.md

-5
This file was deleted.

ruby-testdata/.github/PULL_REQUEST_TEMPLATE.md

-5
This file was deleted.

ruby-testdata/.rspec

-1
This file was deleted.

ruby-testdata/.rsync

-3
This file was deleted.

ruby-testdata/LICENSE

-21
This file was deleted.

ruby-testdata/README.md

-4
This file was deleted.

ruby-testdata/VERSION

-1
This file was deleted.

ruby-testdata/scripts/update-gemspec

-32
This file was deleted.

ruby-testdata/spec/capture_warnings.rb

-74
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

testdata/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Approval test data
2+
3+
In this folder, we use [`cucumber-ruby`](github.com/cucumber/cucumber-ruby) to generate "golden master" test data that we use to verify the JSON formatter's output.
4+
5+
We take the features from the [CCK](https://github.com/cucumber/common/tree/main/compatibility-kit) and run `cucumber-ruby` on each of them.
6+
7+
This then gives us, for each CCK feature:
8+
9+
* An `ndjson` of the messages output by a running CCK-compliant Cucumber (copied over from the CCK)
10+
* A `json` formatter output produced by `cucumber-ruby`
11+
12+
These files are used to test the Go implementation.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)