fix: add in all the extra arguments for uploader (#955)

This commit is contained in:
Tom Hu
2023-04-11 09:06:59 -07:00
committed by GitHub
parent 91e184765d
commit 030a000ec6
5 changed files with 2704 additions and 2568 deletions

View File

@@ -35,25 +35,32 @@ test('all arguments', () => {
'flags': 'test,test2',
'functionalities':
'network',
'full_report': 'oldDir/oldReport.json',
'gcov': 'true',
'gcov_args': '-v',
'gcov_ignore': '*.fake',
'gcov_include': 'real_file',
'gcov_executable': 'gcov2',
'move_coverage_to_trash': 'true',
'name': 'codecov',
'network_filter': 'src/',
'network_prefix': 'build/',
'override_branch': 'thomasrockhu/test',
'override_build': '1',
'override_commit': '9caabca5474b49de74ef5667deabaf74cdacc244',
'override_pr': '2',
'override_tag': 'v1.2',
'root_dir': 'root/',
'swift': 'true',
'swift_project': 'MyApp',
'slug': 'fakeOwner/fakeRepo',
'token': 'd3859757-ab80-4664-924d-aef22fa7557b',
'upstream_proxy': 'https://codecov.example.com',
'url': 'https://codecov.enterprise.com',
'verbose': 't',
'working-directory': 'src',
'xcode': 'true',
'xcode_archive_path': '/test.xcresult',
'xtra_args': '-some -other -args',
};
for (const env of Object.keys(envs)) {
@@ -81,17 +88,25 @@ test('all arguments', () => {
'dir1/coverage.xml',
'-f',
'dir2/coverage.xml',
'-full',
'oldDir/oldReport.json',
'-F',
'test',
'-F',
'test2',
'-g',
'--gcovArgs',
'-gcovArgs',
'-v',
'--gcovIgnore',
'-gcovIgnore',
'*.fake',
'--gcovInclude',
'-gcovInclude',
'real_file',
'-gcovExecutable',
'gcov2',
'-networkFilter',
'src/',
'-networkPrefix',
'build/',
'-B',
'thomasrockhu/test',
'-b',
@@ -108,12 +123,18 @@ test('all arguments', () => {
'coverage/',
'-r',
'fakeOwner/fakeRepo',
'-xs',
'-xsp',
'MyApp',
'-U',
'https://codecov.example.com',
'-u',
'https://codecov.enterprise.com',
'-v',
'--xc',
'--xp',
'-xc',
'-xp',
'/test.xcresult',
'-some -other -args',
]);
expect(failCi).toBeTruthy();