Skip to content

Commit

Permalink
test: update tests to run with v test (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored Mar 21, 2024
1 parent 55c55c4 commit 0215931
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/analyzer_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,4 @@ jobs:
submodules: true

- name: Run tests
run: cd tests && v run .

- name: Run other V tests
run: v test .
5 changes: 3 additions & 2 deletions tests/main.v → tests/analyzer_test.v
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
module main
module tests

import os
import term
import testing

fn main() {
fn test_all() {
defer {
os.rmdir_all(testing.temp_path) or {
println('Failed to remove temp path: ${testing.temp_path}')
}
}
os.chdir(os.join_path(@VMODROOT, 'tests'))!

mut testers := []testing.Tester{}

Expand Down
2 changes: 1 addition & 1 deletion tests/bench.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module main
module tests

import testing

Expand Down
2 changes: 1 addition & 1 deletion tests/completion.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module main
module tests

import testing
import server.completion.providers
Expand Down
2 changes: 1 addition & 1 deletion tests/definitions.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module main
module tests

import testing

Expand Down
2 changes: 1 addition & 1 deletion tests/documentation.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module main
module tests

import testing

Expand Down
2 changes: 1 addition & 1 deletion tests/implementations.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module main
module tests

import testing

Expand Down
2 changes: 1 addition & 1 deletion tests/supers.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module main
module tests

import testing

Expand Down
2 changes: 1 addition & 1 deletion tests/type_tests.v → tests/types.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module main
module tests

import testing

Expand Down

0 comments on commit 0215931

Please sign in to comment.