You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When selecting parameterized tests with multiple parameters using the command line, the full session name does not respect the order of parameters. Instead, the arguments are ordered alphabetically.
Run nox --list or nox to observe the name of the sessions. Sample output is below.
Expected behavior
The session names should have arguments in the same order as in the parameterize call, ie test(a="a1", c="c1", b="b1"). Instead, they are run in alphabetical order.
Output of nox --list:
Sessions defined in /nox_bug_report/noxfile.py:
* test(a='a1', b='b1', c='c1')
* test(a='a1', b='b2', c='c1')
* test(a='a1', b='b1', c='c2')
* test(a='a1', b='b2', c='c2')
* test(a='a2', b='b1', c='c1')
* test(a='a2', b='b2', c='c1')
* test(a='a2', b='b1', c='c2')
* test(a='a2', b='b2', c='c2')
sessions marked with * are selected, sessions marked with - are skipped.
Describe the bug
When selecting parameterized tests with multiple parameters using the command line, the full session name does not respect the order of parameters. Instead, the arguments are ordered alphabetically.
I believe this line is to blame: https://github.com/theacodes/nox/blob/aa9290713a4b664ea4ef4da0554afb09a626d7e1/nox/_parametrize.py#L48
How to reproduce
noxfile.py
to a test folder.nox --list
ornox
to observe the name of the sessions. Sample output is below.Expected behavior
The session names should have arguments in the same order as in the parameterize call, ie
test(a="a1", c="c1", b="b1")
. Instead, they are run in alphabetical order.Output of
nox --list
:Output of
nox
:The text was updated successfully, but these errors were encountered: