mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 16:16:24 +00:00
Fix test
This commit is contained in:
@@ -43,7 +43,7 @@ test('all arguments', () => {
|
||||
"directory": "coverage/",
|
||||
"token": "d3859757-ab80-4664-924d-aef22fa7557b",
|
||||
"verbose": "t",
|
||||
"working_directory": "src/",
|
||||
"working_directory": "src",
|
||||
"path_to_write_report": "codecov/",
|
||||
"xcode_derived_data": "~/Library/Developer/Xcode/DerivedData",
|
||||
"xcode_package": "MyApp"
|
||||
@@ -55,16 +55,81 @@ test('all arguments', () => {
|
||||
|
||||
let { execArgs, options, filepath, fail_ci } = buildExec();
|
||||
expect(execArgs).toEqual([
|
||||
"codecov.sh",
|
||||
"src/codecov.sh",
|
||||
"-n",
|
||||
"",
|
||||
"codecov",
|
||||
"-F",
|
||||
"",
|
||||
"test",
|
||||
"-Q",
|
||||
"github-action"
|
||||
"github-action",
|
||||
"-c",
|
||||
"-N",
|
||||
"83231650328f11695dfb754ca0f540516f188d27",
|
||||
"-A",
|
||||
"--timeout 1",
|
||||
"-U",
|
||||
"--timeout 2",
|
||||
"-e",
|
||||
"OS,PYTHON",
|
||||
"-Z",
|
||||
"-f",
|
||||
"coverage.xml",
|
||||
"-f",
|
||||
"dir1/coverage.xml",
|
||||
"-f",
|
||||
"dir2/coverage.xml",
|
||||
"-X",
|
||||
"gcov",
|
||||
"-X",
|
||||
"coveragepy",
|
||||
"-X",
|
||||
"fix",
|
||||
"-X",
|
||||
"search",
|
||||
"-X",
|
||||
"code",
|
||||
"-X",
|
||||
"network",
|
||||
"-X",
|
||||
"gcovout",
|
||||
"-X",
|
||||
"html",
|
||||
"-X",
|
||||
"recursesubs",
|
||||
"-a",
|
||||
"--timeout 3",
|
||||
"-g",
|
||||
"**/exclude-dir/*.*",
|
||||
"-x",
|
||||
"gcov",
|
||||
"-G",
|
||||
"**/include-dir/*.*",
|
||||
"-k",
|
||||
"demo",
|
||||
"-B",
|
||||
"thomasrockhu/test",
|
||||
"-b",
|
||||
"1",
|
||||
"-C",
|
||||
"9caabca5474b49de74ef5667deabaf74cdacc244",
|
||||
"-P",
|
||||
"2",
|
||||
"-T",
|
||||
"v1.2",
|
||||
"-N",
|
||||
"root/",
|
||||
"-s",
|
||||
"coverage/",
|
||||
"-v",
|
||||
"-q",
|
||||
"codecov/",
|
||||
"-D",
|
||||
"~/Library/Developer/Xcode/DerivedData",
|
||||
"-J",
|
||||
"MyApp",
|
||||
]);
|
||||
expect(filepath).toEqual('codecov.sh');
|
||||
expect(fail_ci).toBeFalsy();
|
||||
expect(filepath).toEqual('src/codecov.sh');
|
||||
expect(fail_ci).toBeTruthy();
|
||||
|
||||
for (let env of Object.keys(envs)) {
|
||||
delete process.env["INPUT_" + env.toUpperCase()];
|
||||
|
||||
Reference in New Issue
Block a user