Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Summary the checkNames and groupNames are being sorted, so cli-summary is not same as execution order #673

Closed
openmohan opened this issue Jun 14, 2018 · 1 comment
Labels

Comments

@openmohan
Copy link
Contributor

On executing a testcase.js using k6 with multiple groups and numerous checks inside them , it executes in proper order but before printing in summary (CLI) , they are being sorted . So the summary test cases output order is not in execution order

Steps to reproduce
1.) Wirte a test case test.js file with multiple groups and checks
2.) Execute it using K6 and compare order of execution and summary

eg:

export default function () {
	// VU cookie jar
	group("c", function () {
		var res = {
			"a": 1
		}
		check(res, {
			"check a": (r) => true
		})
		group("a", function () {
			var res = {
				"a": 1
			}
			check(res, {
				"check a": (r) => true
			})
		});
		group("f", function () {
			var res = {
				"a": 1
			}
			check(res, {
				"check a": (r) => true
			})
		});
		group("e", function () {
			var res = {
				"a": 1
			}
			check(res, {
				"check a": (r) => true
			})
		});
		group("b", function () {
			var res = {
				"a": 1
			}
			check(res, {
				"check a": (r) => true
			})
		});
	});

	group("d", function () {
		var res = {
			"a": 1
		}
		check(res, {
			"check a": (r) => true
		})
	});

	group("a", function () {
		var res = {
			"a": 1
		}
		check(res, {
			"check a": (r) => true
		})
	});


}

On executing this file , the summary in output should be same as the execution order but the names are being sorted
summaryoutput

@na-- na-- added the ux label Jun 14, 2018
@na--
Copy link
Member

na-- commented Jun 19, 2018

Closed by #674

@na-- na-- closed this as completed Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants