Skip to content

Commit 2045f80

Browse files
committed
Use pmd-code.org to download baselines in integration tests
1 parent 45af527 commit 2045f80

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/integration_test_runner.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ def test_single_mode_with_html_flag_option
5656
end
5757

5858
def test_online_mode
59-
# This test depends on the file test_branch_2-baseline.zip being available on sourceforge:
60-
# https://sourceforge.net/projects/pmd/files/pmd-regression-tester/test_branch_2-baseline.zip/download
59+
# This test depends on the file test_branch_2-baseline.zip being available at:
60+
# https://pmd-code.org/pmd-regression-tester/test_branch_2-baseline.zip
6161
base_branch = 'test_branch_2'
62-
argv = "-r target/repositories/pmd -m online -b #{base_branch} -p pmd_releases/6.7.0"
62+
argv = "-r target/repositories/pmd -m online -b #{base_branch} -p pmd_releases/6.7.0 " \
63+
'--baseline-download-url https://pmd-code.org/pmd-regression-tester/'
6364

6465
system("bundle exec bin/pmdtester #{argv}")
6566

@@ -76,15 +77,16 @@ def test_online_mode
7677
end
7778

7879
def test_online_mode_different_project_list_and_config
79-
# This test depends on the file pmd_releases_6.6.0-baseline.zip being available on sourceforge:
80-
# https://sourceforge.net/projects/pmd/files/pmd-regression-tester/pmd_releases_6.6.0-baseline.zip/download
80+
# This test depends on the file pmd_releases_6.6.0-baseline.zip being available at:
81+
# https://pmd-code.org/pmd-regression-tester/pmd_releases_6.6.0-baseline.zip
8182
argv = '--local-git-repo target/repositories/pmd '\
8283
'--mode online '\
8384
'--base-branch pmd_releases/6.6.0 '\
8485
'--patch-branch pmd_releases/6.7.0 '\
8586
'--patch-config test/resources/integration_test_runner/patch-config.xml '\
8687
'--list-of-project test/resources/integration_test_runner/project-list.xml '\
87-
'--auto-gen-config'
88+
'--auto-gen-config ' \
89+
'--baseline-download-url https://pmd-code.org/pmd-regression-tester/'
8890

8991
system("bundle exec bin/pmdtester #{argv}")
9092

0 commit comments

Comments
 (0)