-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Re-enable accidentially disabled integration tests
The culprit is commit 9580862 when switching from HudsonTestCase to JenkinsRule. The rule has to be used as a JUnit 4 rule inside a test. It is different to JUnit 3 and cannot be used as a base class. As no JUnit 3 base class is used anymore the JUnit 4 runner kicks in and only detects methods annotated with `@Test` as test methods. JUnit 3 was using the prefix "test" in method names to detect test methods. The temporary folder has to be provided as absolute path. Otherwise `Jenkins::checkRawBuildsDir` fails with a message like this: "jenkins.model.InvalidBuildsDir: ${ITEM_ROOTDIR}/builds does not resolve to an absolute path" `WebClient::goTo` now takes a relative instead of an absolute URL. Triggering the "change" event on HTML form inputs now requires a bit more plumbing. Many tests fail because running the Javascript code fails reporting a missing "each" function.
- Loading branch information
Showing
9 changed files
with
317 additions
and
248 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
Oops, something went wrong.