-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate some failing tests to JUnit and fix (most of) them (#125)
* Move tests to src/test/java/package because tooling expects them there * Update HashDigest tests They now use JUnit and fixed the hashes since the file used to test the hashing algorithms has been changed. * Move image tests to junit, include test data in repo * Migrate SSR tests to JUnit, introduce tags for tests Many of the SSR tests require additional information (passwords, accounts, local server). This change tags with what is needed. Making the tests pass in JUnit is a future task. * Move Opendap test to JUnit (tagged with Thredds) * Clean up test boilerplate from classes that no longer need it * Format new test files * Migrate NCHelper tests to JUnit Also bring over resources the tests depend on * Removing calls to test functions that have been migrated to JUnit * Format code and move image test files to the test resources directory * Update Regex tests to not rely on a separate installed program directory * Clean up unused dependencies in files that have had tests migrated * Clean up old test function RegexFilenameFilter * Migrate and fix OpendapHelper tests Tags breaking due to thredds are tagged. Also update image tests to use a junit temp directory. * Use a proper temp directory for nchelper tests * Add a tag for relying on an external ERDDAP server. This should be one of the easiest tags to fix, but for right now it can cause test failures due to issues outside of the current code. * Migrate GridDataSetThredds tests to JUnit (tagged THREDDS) * Fix values for RegexFilenameFilterTests If this number keeps changing, consider removing the specific assert. * Comment out the byte size checking part of gatherinfo test because it is flaky * Migrate GridDataSet OpenData and Anomaly tests to JUnit (TagThredds) * Migrate Table Tests to junit This adds a few new tags for why tests are currently failing. * TableTests: Move some resources from c: to the test resources directory Also update several paths to use the resources directory instead of hardcoded absolute paths. * TableTests splitting long lines * Use a resource instead of a file relative to the class path * Label a test as using thredds It was causing intermittent failures * Reduce the logging from Table Tests
- Loading branch information
1 parent
0642947
commit 7bab64c
Showing
10,486 changed files
with
45,123 additions
and
23,016 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Oops, something went wrong.