forked from canonical/lxd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support running individual testify test suites
Since the standard "go test" tool is not aware of testify and since unit tests using testify are all direct methods of lxdTestSuite, it's not possible to easily run a particular set of tests in isolation (say all tests in container_test.go). This commit changes the test files to declare their own test suite, based on lxdTestSuite, so now running: ``` go test -v -run TestContainerTestSuite ./lxd ``` or ``` go test -v -run TestDaemonTestSuite ./lxd ``` will only execute the the tests in those suites, as opposed to the entire suite. Signed-off-by: Free Ekanayaka <[email protected]>
- Loading branch information
1 parent
be2eccc
commit bf238e9
Showing
3 changed files
with
39 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters