Skip to content

Latest commit

 

History

History
66 lines (50 loc) · 2.09 KB

README.rst

File metadata and controls

66 lines (50 loc) · 2.09 KB

Basic go_test functionality

Tests to ensure that basic features of go_test are working as expected.

Test that a go_test rule that adds white box tests to an embedded package works. This builds a library with lib.go and then a package with an internal test that contains the test case. It uses x_def stamped values to verify the library names are correct.

Test that a go_test rule that adds black box tests for a dependant package works. This builds a library with lib.go and then a package with an external test that contains the test case. It uses x_def stamped values to verify the library names are correct.

Test that a go_test rule that adds both white and black box tests for a package works. This builds a library with lib.go and then a one merged with the internal test, and then another one that depends on it with the external test. It uses x_def stamped values to verify that all library names are correct. Verifies #413

Test that a go_test rule that adds flags, even in the main package, can read the flag. This does not even build a library, it's a test in the main package with no dependancies that checks it can declare and then read a flag. Verifies #838

Test that an go_test that contains a TestMain function but no tests still builds and passes.

Test that an external test package in go_test is compiled with the correct importmap for the library under test. This is verified by defining an interface in the library under test and implementing it in a separate dependency.

Verifies #1538.

Checks that the PWD environment variable is set to the current directory in the generated test main before running a test. This matches functionality in go test.

Verifies #1561.