1
0
Fork 0

Add tests for oni-csharp

This commit is contained in:
Tom Willemse 2020-01-28 21:48:28 -08:00
parent 8009bffa79
commit 76f9a50c45
2 changed files with 28 additions and 0 deletions

View file

@ -221,6 +221,13 @@ integration-test-oni-conf:
- package - package
script: make integration-test-oni-conf TEST_ARCHIVE=$(realpath bin/) script: make integration-test-oni-conf TEST_ARCHIVE=$(realpath bin/)
integration-test-oni-csharp:
stage: integration-test
image: registry.gitlab.com/ryuslash/emacs-config
dependencies:
- package
script: make integration-test-oni-csharp TEST_ARCHIVE=$(realpath bin/)
integration-test-oni-bookmark: integration-test-oni-bookmark:
stage: integration-test stage: integration-test
image: registry.gitlab.com/ryuslash/emacs-config image: registry.gitlab.com/ryuslash/emacs-config

View file

@ -0,0 +1,21 @@
#!/usr/bin/env bats
@test "Opening a .cs file loads oni-csharp" {
run emacs -batch -l package -f package-initialize \
-visit test.cs \
-eval "(prin1 (featurep 'oni-csharp))"
echo "$output"
[[ "$output" == *"t" ]]
}
@test "Opening a .xaml file loads nxml-mode" {
run emacs -batch -l package -f package-initialize \
-visit test.xaml \
-eval "(prin1 major-mode)"
echo "$output"
[[ "$output" == *"nxml-mode" ]]
}